From: Gregory P. Smith Date: Sat, 21 May 2011 12:19:42 +0000 (-0700) Subject: avoid a compiler warning. the compiler doesn't know that the static X-Git-Tag: v3.3.0a1~2210 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=95c7c46077864f6ae9ac6dd1eaf4d79452e7aeb2;p=python avoid a compiler warning. the compiler doesn't know that the static struct guarantees the loop will always be run once to initialize code. --- 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;