Kaydet (Commit) 9a2261a3 authored tarafından Victor Stinner's avatar Victor Stinner

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.
üst 97e561ef
...@@ -1196,7 +1196,7 @@ get_module_code(ZipImporter *self, PyObject *fullname, ...@@ -1196,7 +1196,7 @@ get_module_code(ZipImporter *self, PyObject *fullname,
int *p_ispackage, PyObject **p_modpath) int *p_ispackage, PyObject **p_modpath)
{ {
PyObject *code = NULL, *toc_entry, *subname; PyObject *code = NULL, *toc_entry, *subname;
PyObject *path, *fullpath; PyObject *path, *fullpath = NULL;
struct st_zip_searchorder *zso; struct st_zip_searchorder *zso;
subname = get_subname(fullname); subname = get_subname(fullname);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment