From 95c7c46077864f6ae9ac6dd1eaf4d79452e7aeb2 Mon Sep 17 00:00:00 2001 From: "Gregory P. Smith" Date: Sat, 21 May 2011 05:19:42 -0700 Subject: avoid a compiler warning. the compiler doesn't know that the static struct guarantees the loop will always be run once to initialize code. --- Modules/zipimport.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- cgit v0.12