]> granicus.if.org Git - python/commitdiff
Fix gcc (4.0.x) warning about use of uninitialized variable.
authorThomas Wouters <thomas@python.org>
Wed, 1 Mar 2006 22:54:36 +0000 (22:54 +0000)
committerThomas Wouters <thomas@python.org>
Wed, 1 Mar 2006 22:54:36 +0000 (22:54 +0000)
Modules/gdbmmodule.c

index 025bdb7dba0188f8dab084aa3ea4f94a217df5bb..76d54f820b180edd3276cd09021be280a3c4c743 100644 (file)
@@ -97,6 +97,7 @@ dbm_length(dbmobject *dp)
         datum key,okey;
         int size;
         okey.dsize=0;
+        okey.dptr=NULL;
 
         size = 0;
         for (key=gdbm_firstkey(dp->di_dbm); key.dptr;