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.
This commit is contained in:
parent
97e561ef24
commit
9a2261a372
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue