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:
Victor Stinner 2011-05-26 13:59:41 +02:00
parent 97e561ef24
commit 9a2261a372
1 changed files with 1 additions and 1 deletions

View File

@ -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);