From 69b9f89dc9d1053f3107d3d8d849469db049f483 Mon Sep 17 00:00:00 2001 From: MadCamel Date: Wed, 26 Aug 2009 14:10:46 -0400 Subject: Revert "Fixed crash on empty storage" This reverts commit 53f87f7e41aa8f5dbe8639253ede44542086f046. I was sloppy about where I put the null check. --- src/common/db.c | 3 --- 1 file changed, 3 deletions(-) (limited to 'src') 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;iht[i])==NULL) -- cgit v1.2.3-70-g09d2