Fix gcc (4.0.x) warning about use of uninitialized variables.

(PyMarshal_ReadShortFromFile() is only used in zipimport.c, I don't believe
the extra initializations will matter one way or another.)
This commit is contained in:
Thomas Wouters 2006-03-01 22:30:47 +00:00
parent f86d1e810d
commit 7f401ef73d
1 changed files with 2 additions and 1 deletions

View File

@ -885,8 +885,9 @@ int
PyMarshal_ReadShortFromFile(FILE *fp)
{
RFILE rf;
assert(fp);
rf.fp = fp;
rf.strings = NULL;
rf.strings = rf.end = rf.ptr = NULL;
return r_short(&rf);
}