summaryrefslogtreecommitdiff
path: root/AppPkg/Applications/Python/Python-2.7.2/Objects/object.c
diff options
context:
space:
mode:
authorDaryl McDaniel <daryl.mcdaniel@intel.com>2014-08-18 23:00:50 +0000
committerdarylm503 <darylm503@6f19259b-4bc3-4df7-8a09-765794883524>2014-08-18 23:00:50 +0000
commitde08c53b0f65f212c25f0eea13d6cdf4bd9c7fb4 (patch)
tree642e66c50c086c89cfdaa97614552a9473dcce0a /AppPkg/Applications/Python/Python-2.7.2/Objects/object.c
parent838b31a68cba781fb64ae4deb97fa69b2ed6d4b8 (diff)
downloadedk2-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/object.c')
-rw-r--r--AppPkg/Applications/Python/Python-2.7.2/Objects/object.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/AppPkg/Applications/Python/Python-2.7.2/Objects/object.c b/AppPkg/Applications/Python/Python-2.7.2/Objects/object.c
index 2fd38437c6..2cdc043c77 100644
--- a/AppPkg/Applications/Python/Python-2.7.2/Objects/object.c
+++ b/AppPkg/Applications/Python/Python-2.7.2/Objects/object.c
@@ -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>");