[Python-checkins] r42754 - python/trunk/Modules/gdbmmodule.c

thomas.wouters python-checkins at python.org
Wed Mar 1 23:54:38 CET 2006


Author: thomas.wouters
Date: Wed Mar 1 23:54:36 2006
New Revision: 42754
Modified:
 python/trunk/Modules/gdbmmodule.c
Log:
Fix gcc (4.0.x) warning about use of uninitialized variable.
Modified: python/trunk/Modules/gdbmmodule.c
==============================================================================
--- python/trunk/Modules/gdbmmodule.c	(original)
+++ python/trunk/Modules/gdbmmodule.c	Wed Mar 1 23:54:36 2006
@@ -97,6 +97,7 @@
 datum key,okey;
 int size;
 okey.dsize=0;
+ okey.dptr=NULL;
 
 size = 0;
 for (key=gdbm_firstkey(dp->di_dbm); key.dptr;


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /