Bump sdb for an ns fix

This commit is contained in:
pancake 2014-08-25 01:30:13 +02:00
parent 0814a6d4e2
commit 492cecdcb9
2 changed files with 2 additions and 2 deletions

View file

@ -30,7 +30,7 @@ ifeq ($(CC),cc)
CFLAGS+=$(shell gcc -v 2>&1 | grep -q LLVM && echo '-Wno-initializer-overrides')
endif
CFLAGS+=-Wall
CFLAGS+=-O0
CFLAGS+=-O3
#CFLAGS+=-ggdb -g -Wall -O0
CFLAGS+=-g
LDFLAGS+=-g

View file

@ -122,7 +122,7 @@ SDB_API int sdb_ns_set (Sdb *s, const char *name, Sdb *r) {
SdbNs *ns;
SdbListIter *it;
ut32 hash = sdb_hash (name);
if (!s || !name)
if (!s || !r || !name)
return 0;
ls_foreach (s->ns, it, ns) {
if (ns->hash == hash) {