]> git.proxmox.com Git - mirror_edk2.git/blobdiff - AppPkg/Applications/Python/Python-2.7.2/Objects/weakrefobject.c
AppPkg/Applications/Python: Explicitly initialize variables before use to keep newer...
[mirror_edk2.git] / AppPkg / Applications / Python / Python-2.7.2 / Objects / weakrefobject.c
index ed16b254ca191b2931ab6ea5618e240bd4ddcd6e..f852aea349dd6affda11b62257c8508574acd827 100644 (file)
@@ -914,7 +914,9 @@ PyObject_ClearWeakRefs(PyObject *object)
         PyWeakReference *current = *list;\r
         Py_ssize_t count = _PyWeakref_GetWeakrefCount(current);\r
         int restore_error = PyErr_Occurred() ? 1 : 0;\r
-        PyObject *err_type, *err_value, *err_tb;\r
+        PyObject *err_type    = NULL,\r
+                 *err_value   = NULL,\r
+                 *err_tb      = NULL;\r
 \r
         if (restore_error)\r
             PyErr_Fetch(&err_type, &err_value, &err_tb);\r