diff options
author | Victor Stinner <victor.stinner@haypocalc.com> | 2011-05-26 13:59:41 +0200 |
---|---|---|
committer | Victor Stinner <victor.stinner@haypocalc.com> | 2011-05-26 13:59:41 +0200 |
commit | b56f90e757efd39afdfc639572fa33b0788c29c9 (patch) | |
tree | 6dd9da7428a6226671099b3301b82a1bcfcf7d8e /Modules/zipimport.c | |
parent | 9b94667b79d7b7152657519e1903cdcae790be88 (diff) | |
download | cpython-b56f90e757efd39afdfc639572fa33b0788c29c9.tar.gz |
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/zipimport.c')
-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 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); |