diff options
author | MadCamel <madcamel@gmail.com> | 2009-08-26 14:10:46 -0400 |
---|---|---|
committer | MadCamel <madcamel@gmail.com> | 2009-08-26 14:10:46 -0400 |
commit | 69b9f89dc9d1053f3107d3d8d849469db049f483 (patch) | |
tree | abc755049449efc87ef7d0792b85d4f5c7f7c6a5 /src/common/db.c | |
parent | 415983958551f0e7ff72bec2921a67918d96d130 (diff) | |
download | tmwa-69b9f89dc9d1053f3107d3d8d849469db049f483.tar.gz tmwa-69b9f89dc9d1053f3107d3d8d849469db049f483.tar.bz2 tmwa-69b9f89dc9d1053f3107d3d8d849469db049f483.tar.xz tmwa-69b9f89dc9d1053f3107d3d8d849469db049f483.zip |
Revert "Fixed crash on empty storage"
This reverts commit 53f87f7e41aa8f5dbe8639253ede44542086f046.
I was sloppy about where I put the null check.
Diffstat (limited to 'src/common/db.c')
-rw-r--r-- | src/common/db.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/src/common/db.c b/src/common/db.c index 62d5732..a2dc695 100644 --- a/src/common/db.c +++ b/src/common/db.c @@ -434,9 +434,6 @@ void db_foreach(struct dbt *table,int (*func)(void*,void*,va_list),...) struct dbn *p,*pn,*stack[64]; va_list ap; - if (!table) - return; - va_start(ap,func); for(i=0;i<HASH_SIZE;i++){ if((p=table->ht[i])==NULL) |