diff Python/marshal.c @ 36783:965bb4a54096 legacy-trunk

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.)
author Thomas Wouters <thomas@python.org>
date Wed, 01 Mar 2006 22:30:47 +0000
parents 2791676b3825
children d853bc06847e
line wrap: on
line diff
--- a/Python/marshal.c	Wed Mar 01 22:15:15 2006 +0000
+++ b/Python/marshal.c	Wed Mar 01 22:30:47 2006 +0000
@@ -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);
 }