summaryrefslogtreecommitdiff
path: root/source3/tdb
diff options
context:
space:
mode:
authorJean-François Micouleau <jfm@samba.org>2002-04-30 16:54:14 +0000
committerJean-François Micouleau <jfm@samba.org>2002-04-30 16:54:14 +0000
commit9d0ff4b777c2bf053b47dab0ae8a5ce007145b7b (patch)
tree37e76ecb66fa830c443f68f60b72da867365ee26 /source3/tdb
parent7f2080ba2b30eec14d6559de30d929dc7f75512e (diff)
downloadsamba-9d0ff4b777c2bf053b47dab0ae8a5ce007145b7b.tar.gz
samba-9d0ff4b777c2bf053b47dab0ae8a5ce007145b7b.tar.bz2
samba-9d0ff4b777c2bf053b47dab0ae8a5ce007145b7b.zip
fixed tdbtool from core dumping. But the braces to make Chris happy !
J.F. (This used to be commit d0eae50874ff6ddbf9fca24864e7638efb0936b1)
Diffstat (limited to 'source3/tdb')
-rw-r--r--source3/tdb/tdbtool.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/source3/tdb/tdbtool.c b/source3/tdb/tdbtool.c
index caa2940141..ba0fb48957 100644
--- a/source3/tdb/tdbtool.c
+++ b/source3/tdb/tdbtool.c
@@ -368,8 +368,10 @@ static void first_record(TDB_CONTEXT *the_tdb, TDB_DATA *pkey)
dbuf = tdb_fetch(the_tdb, *pkey);
if (!dbuf.dptr) terror("fetch failed");
- /* printf("%s : %*.*s\n", k, (int)dbuf.dsize, (int)dbuf.dsize, dbuf.dptr); */
- print_rec(the_tdb, *pkey, dbuf, NULL);
+ else {
+ /* printf("%s : %*.*s\n", k, (int)dbuf.dsize, (int)dbuf.dsize, dbuf.dptr); */
+ print_rec(the_tdb, *pkey, dbuf, NULL);
+ }
}
static void next_record(TDB_CONTEXT *the_tdb, TDB_DATA *pkey)