summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@haypocalc.com>2011-05-26 11:59:41 (GMT)
committerVictor Stinner <victor.stinner@haypocalc.com>2011-05-26 11:59:41 (GMT)
commit9a2261a3729805ca5e5062c37767df80ced9e5df (patch)
treef49b41c8fab0a15ea3c057ce26f58a4deebe6d38 /Modules
parent97e561ef24b6270d0000e21be3afb994caefcd8f (diff)
downloadcpython-9a2261a3729805ca5e5062c37767df80ced9e5df.zip
cpython-9a2261a3729805ca5e5062c37767df80ced9e5df.tar.gz
cpython-9a2261a3729805ca5e5062c37767df80ced9e5df.tar.bz2
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.
Diffstat (limited to 'Modules')
-rw-r--r--Modules/zipimport.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/zipimport.c b/Modules/zipimport.c
index de89a76..a83bf8b 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);