From de08c53b0f65f212c25f0eea13d6cdf4bd9c7fb4 Mon Sep 17 00:00:00 2001 From: Daryl McDaniel Date: Mon, 18 Aug 2014 23:00:50 +0000 Subject: 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 Reviewed-by: Jaben Carsey Reviewed-by: Erik Bjorge git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15819 6f19259b-4bc3-4df7-8a09-765794883524 --- AppPkg/Applications/Python/Python-2.7.2/Objects/weakrefobject.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'AppPkg/Applications/Python/Python-2.7.2/Objects/weakrefobject.c') 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); -- cgit v1.2.3