From 7f401ef73dbdfd3b144ae25be62e2c139d699916 Mon Sep 17 00:00:00 2001 From: Thomas Wouters Date: Wed, 1 Mar 2006 22:30:47 +0000 Subject: [PATCH] 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.) --- Python/marshal.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Python/marshal.c b/Python/marshal.c index 4e922dc8388..b61436b72e2 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); }