mirror of
https://github.com/python/cpython.git
synced 2025-11-02 19:12:55 +00:00
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:
parent
f86d1e810d
commit
7f401ef73d
1 changed files with 2 additions and 1 deletions
|
|
@ -885,8 +885,9 @@ int
|
||||||
PyMarshal_ReadShortFromFile(FILE *fp)
|
PyMarshal_ReadShortFromFile(FILE *fp)
|
||||||
{
|
{
|
||||||
RFILE rf;
|
RFILE rf;
|
||||||
|
assert(fp);
|
||||||
rf.fp = fp;
|
rf.fp = fp;
|
||||||
rf.strings = NULL;
|
rf.strings = rf.end = rf.ptr = NULL;
|
||||||
return r_short(&rf);
|
return r_short(&rf);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue