diff options
author | Gregory P. Smith <greg@krypto.org> | 2011-05-21 12:19:42 (GMT) |
---|---|---|
committer | Gregory P. Smith <greg@krypto.org> | 2011-05-21 12:19:42 (GMT) |
commit | 95c7c46077864f6ae9ac6dd1eaf4d79452e7aeb2 (patch) | |
tree | ad0bb18949177f3b6e557458d92529c2d5a2decc | |
parent | 9ba876104ea63f7b6ff906a3b4eac1704125649a (diff) | |
download | cpython-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.
-rw-r--r-- | Modules/zipimport.c | 2 |
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; |