summaryrefslogtreecommitdiffstats
path: root/Python/marshal.c
diff options
context:
space:
mode:
authorThomas Wouters <thomas@python.org>2006-03-01 22:30:47 (GMT)
committerThomas Wouters <thomas@python.org>2006-03-01 22:30:47 (GMT)
commit7f401ef73dbdfd3b144ae25be62e2c139d699916 (patch)
treec255574e674399efeb9222a3405ff6c0f94504c9 /Python/marshal.c
parentf86d1e810d5827c46f3d7fc519e308e310406941 (diff)
downloadcpython-7f401ef73dbdfd3b144ae25be62e2c139d699916.zip
cpython-7f401ef73dbdfd3b144ae25be62e2c139d699916.tar.gz
cpython-7f401ef73dbdfd3b144ae25be62e2c139d699916.tar.bz2
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.)
Diffstat (limited to 'Python/marshal.c')
-rw-r--r--Python/marshal.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/Python/marshal.c b/Python/marshal.c
index 4e922dc..b61436b 100644
--- a/Python/marshal.c
+++ b/Python/marshal.c
@@ -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);
}