mirror of
https://github.com/python/cpython.git
synced 2025-07-24 11:44:31 +00:00
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
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue