summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorThomas Wouters <thomas@python.org>2006-03-01 22:54:36 (GMT)
committerThomas Wouters <thomas@python.org>2006-03-01 22:54:36 (GMT)
commita5fa2a8a133f28fe0afa04970d4aaa5af9e09ca2 (patch)
tree8df47d9f701adfd43f8671885c57be44b877feed /Modules
parent49c5da1d88f605248167f4d95b1dfe08c1f703c7 (diff)
downloadcpython-a5fa2a8a133f28fe0afa04970d4aaa5af9e09ca2.zip
cpython-a5fa2a8a133f28fe0afa04970d4aaa5af9e09ca2.tar.gz
cpython-a5fa2a8a133f28fe0afa04970d4aaa5af9e09ca2.tar.bz2
Fix gcc (4.0.x) warning about use of uninitialized variable.
Diffstat (limited to 'Modules')
-rw-r--r--Modules/gdbmmodule.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/Modules/gdbmmodule.c b/Modules/gdbmmodule.c
index 025bdb7..76d54f8 100644
--- a/Modules/gdbmmodule.c
+++ b/Modules/gdbmmodule.c
@@ -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;