summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMadCamel <madcamel@gmail.com>2009-08-26 14:10:46 -0400
committerMadCamel <madcamel@gmail.com>2009-08-26 14:10:46 -0400
commit69b9f89dc9d1053f3107d3d8d849469db049f483 (patch)
treeabc755049449efc87ef7d0792b85d4f5c7f7c6a5 /src
parent415983958551f0e7ff72bec2921a67918d96d130 (diff)
downloadtmwa-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')
-rw-r--r--src/common/db.c3
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)