summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGregory P. Smith <greg@krypto.org>2011-05-21 05:19:42 -0700
committerGregory P. Smith <greg@krypto.org>2011-05-21 05:19:42 -0700
commit95c7c46077864f6ae9ac6dd1eaf4d79452e7aeb2 (patch)
treead0bb18949177f3b6e557458d92529c2d5a2decc
parent9ba876104ea63f7b6ff906a3b4eac1704125649a (diff)
downloadcpython-git-95c7c46077864f6ae9ac6dd1eaf4d79452e7aeb2.tar.gz
avoid a compiler warning. the compiler doesn't know that the static
struct guarantees the loop will always be run once to initialize code.
-rw-r--r--Modules/zipimport.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/zipimport.c b/Modules/zipimport.c
index 6b125c235f..de89a76990 100644
--- a/Modules/zipimport.c
+++ b/Modules/zipimport.c
@@ -1195,7 +1195,7 @@ static PyObject *
get_module_code(ZipImporter *self, PyObject *fullname,
int *p_ispackage, PyObject **p_modpath)
{
- PyObject *code, *toc_entry, *subname;
+ PyObject *code = NULL, *toc_entry, *subname;
PyObject *path, *fullpath;
struct st_zip_searchorder *zso;