From: Victor Stinner Date: Thu, 26 May 2011 11:59:41 +0000 (+0200) Subject: zipimport: initialize fullpath to NULL X-Git-Tag: v3.3.0a1~2183^2~93 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9a2261a3729805ca5e5062c37767df80ced9e5df;p=python zipimport: initialize fullpath to NULL In some cases, fullpath value is used whereas fullpath was not always initialized. Warning found by the Clang Static Analyzer. --- diff --git a/Modules/zipimport.c b/Modules/zipimport.c index de89a76990..a83bf8be13 100644 --- a/Modules/zipimport.c +++ b/Modules/zipimport.c @@ -1196,7 +1196,7 @@ get_module_code(ZipImporter *self, PyObject *fullname, int *p_ispackage, PyObject **p_modpath) { PyObject *code = NULL, *toc_entry, *subname; - PyObject *path, *fullpath; + PyObject *path, *fullpath = NULL; struct st_zip_searchorder *zso; subname = get_subname(fullname);