summaryrefslogtreecommitdiff
path: root/AppPkg/Applications/Python/Python-2.7.2/Objects/weakrefobject.c
diff options
context:
space:
mode:
Diffstat (limited to 'AppPkg/Applications/Python/Python-2.7.2/Objects/weakrefobject.c')
-rw-r--r--AppPkg/Applications/Python/Python-2.7.2/Objects/weakrefobject.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/AppPkg/Applications/Python/Python-2.7.2/Objects/weakrefobject.c b/AppPkg/Applications/Python/Python-2.7.2/Objects/weakrefobject.c
index ed16b254ca..f852aea349 100644
--- a/AppPkg/Applications/Python/Python-2.7.2/Objects/weakrefobject.c
+++ b/AppPkg/Applications/Python/Python-2.7.2/Objects/weakrefobject.c
@@ -914,7 +914,9 @@ PyObject_ClearWeakRefs(PyObject *object)
PyWeakReference *current = *list;
Py_ssize_t count = _PyWeakref_GetWeakrefCount(current);
int restore_error = PyErr_Occurred() ? 1 : 0;
- PyObject *err_type, *err_value, *err_tb;
+ PyObject *err_type = NULL,
+ *err_value = NULL,
+ *err_tb = NULL;
if (restore_error)
PyErr_Fetch(&err_type, &err_value, &err_tb);