git.samba.org
/
gd
/
samba
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7f2080b
)
fixed tdbtool from core dumping. But the braces to make Chris happy !
author
Jean-François Micouleau
<jfm@samba.org>
Tue, 30 Apr 2002 16:54:14 +0000
(16:54 +0000)
committer
Jean-François Micouleau
<jfm@samba.org>
Tue, 30 Apr 2002 16:54:14 +0000
(16:54 +0000)
J.F.
(This used to be commit
d0eae50874ff6ddbf9fca24864e7638efb0936b1
)
source3/tdb/tdbtool.c
patch
|
blob
|
history
diff --git
a/source3/tdb/tdbtool.c
b/source3/tdb/tdbtool.c
index caa294014180ef1e4badae9cc4789bc2283197f6..ba0fb48957d78cd25cda5f38c1bc89c2e0250a78 100644
(file)
--- 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)