[Python-checkins] r42750 - python/trunk/Python/marshal.c
thomas.wouters
python-checkins at python.org
Wed Mar 1 23:30:48 CET 2006
Author: thomas.wouters
Date: Wed Mar 1 23:30:47 2006
New Revision: 42750
Modified:
python/trunk/Python/marshal.c
Log:
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.)
Modified: python/trunk/Python/marshal.c
==============================================================================
--- python/trunk/Python/marshal.c (original)
+++ python/trunk/Python/marshal.c Wed Mar 1 23:30:47 2006
@@ -885,8 +885,9 @@
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);
}
More information about the Python-checkins
mailing list