ntdb: simply disallow NULL names.
authorRusty Russell <rusty@rustcorp.com.au>
Tue, 19 Jun 2012 03:08:33 +0000 (12:38 +0930)
committerRusty Russell <rusty@rustcorp.com.au>
Tue, 19 Jun 2012 03:38:06 +0000 (05:38 +0200)
commit89b0d5ac6cd7f2c47148a9ac87ce8d6aea40050b
tree7834c6c649151ccdfb1a8bd4a6e2fffa57354896
parent7fae6c44e2ffd720af406d1e0b48c08007091aab
ntdb: simply disallow NULL names.

TDB allows this for internal databases, but it's a bad idea, since the
name is useful for logging.

They're a hassle to deal with, and we'd just end up putting "unnamed"
in there, so let the user deal with it.  If they don't, they get an
informative core dump.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
lib/ntdb/ntdb.h
lib/ntdb/open.c
lib/ntdb/test/helprun-layout.c