Fix gcc (4.0.x) warning about use of uninitialized variable.

This commit is contained in:
Thomas Wouters 2006-03-01 22:54:36 +00:00
parent 49c5da1d88
commit a5fa2a8a13
1 changed files with 1 additions and 0 deletions

View File

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