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
This commit is contained in:
committed by
darylm503
parent
838b31a68c
commit
de08c53b0f
@ -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);
|
||||
|
Reference in New Issue
Block a user