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
@ -470,11 +470,11 @@ PyObject_Str(PyObject *v)
|
||||
PyObject *
|
||||
PyObject_Unicode(PyObject *v)
|
||||
{
|
||||
PyObject *res;
|
||||
PyObject *func;
|
||||
PyObject *str;
|
||||
PyObject *res = NULL;
|
||||
PyObject *func = NULL;
|
||||
PyObject *str = NULL;
|
||||
int unicode_method_found = 0;
|
||||
static PyObject *unicodestr;
|
||||
static PyObject *unicodestr = NULL;
|
||||
|
||||
if (v == NULL) {
|
||||
res = PyString_FromString("<NULL>");
|
||||
|
Reference in New Issue
Block a user