diff options
author | Victor Stinner <victor.stinner@haypocalc.com> | 2011-05-26 11:59:41 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@haypocalc.com> | 2011-05-26 11:59:41 (GMT) |
commit | 9a2261a3729805ca5e5062c37767df80ced9e5df (patch) | |
tree | f49b41c8fab0a15ea3c057ce26f58a4deebe6d38 /Modules | |
parent | 97e561ef24b6270d0000e21be3afb994caefcd8f (diff) | |
download | cpython-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.c | 2 |
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); |