diff options
author | Daryl McDaniel <daryl.mcdaniel@intel.com> | 2014-08-18 23:00:50 +0000 |
---|---|---|
committer | darylm503 <darylm503@6f19259b-4bc3-4df7-8a09-765794883524> | 2014-08-18 23:00:50 +0000 |
commit | de08c53b0f65f212c25f0eea13d6cdf4bd9c7fb4 (patch) | |
tree | 642e66c50c086c89cfdaa97614552a9473dcce0a /AppPkg/Applications/Python/Python-2.7.2/Objects/weakrefobject.c | |
parent | 838b31a68cba781fb64ae4deb97fa69b2ed6d4b8 (diff) | |
download | edk2-platforms-de08c53b0f65f212c25f0eea13d6cdf4bd9c7fb4.tar.xz |
AppPkg/Applications/Python: Explicitly initialize variables before use to keep newer compilers happy.
Explicitly initialize variables before any potential use.
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Daryl McDaniel <daryl.mcdaniel@intel.com>
Reviewed-by: Jaben Carsey <Jaben.carsey@intel.com>
Reviewed-by: Erik Bjorge <erik.c.bjorge@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15819 6f19259b-4bc3-4df7-8a09-765794883524
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.c | 4 |
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);
|