summaryrefslogtreecommitdiffstats
path: root/Modules/zipimport.c
diff options
context:
space:
mode:
authorGregory P. Smith <greg@krypto.org>2011-05-21 12:19:42 (GMT)
committerGregory P. Smith <greg@krypto.org>2011-05-21 12:19:42 (GMT)
commit95c7c46077864f6ae9ac6dd1eaf4d79452e7aeb2 (patch)
treead0bb18949177f3b6e557458d92529c2d5a2decc /Modules/zipimport.c
parent9ba876104ea63f7b6ff906a3b4eac1704125649a (diff)
downloadcpython-95c7c46077864f6ae9ac6dd1eaf4d79452e7aeb2.zip
cpython-95c7c46077864f6ae9ac6dd1eaf4d79452e7aeb2.tar.gz
cpython-95c7c46077864f6ae9ac6dd1eaf4d79452e7aeb2.tar.bz2
avoid a compiler warning. the compiler doesn't know that the static
struct guarantees the loop will always be run once to initialize code.
Diffstat (limited to 'Modules/zipimport.c')
-rw-r--r--Modules/zipimport.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/zipimport.c b/Modules/zipimport.c
index 6b125c2..de89a76 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;