projects
/
ccan
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8a98a4b
)
Fix uninitialized var.
author
Rusty Russell
<rusty@rustcorp.com.au>
Tue, 7 Jul 2009 22:19:58 +0000
(07:49 +0930)
committer
Rusty Russell
<rusty@rustcorp.com.au>
Tue, 7 Jul 2009 22:19:58 +0000
(07:49 +0930)
ccan/tdb/tools/replay_trace.c
patch
|
blob
|
history
diff --git
a/ccan/tdb/tools/replay_trace.c
b/ccan/tdb/tools/replay_trace.c
index 10f9ebf2c064a98a124d359049449790417608b7..0a4201c3522a9a25283267f766d41973df67b150 100644
(file)
--- a/
ccan/tdb/tools/replay_trace.c
+++ b/
ccan/tdb/tools/replay_trace.c
@@
-328,6
+328,8
@@
static void op_analyze_traverse(const char *filename,
int i;
struct traverse *trav = talloc(op, struct traverse);
+ op[op_num].key = tdb_null;
+
/* = %u means traverse function terminated. */
if (words[2]) {
if (!streq(words[2], "=") || !words[3] || words[4])
@@
-935,7
+937,7
@@
int main(int argc, char *argv[])
int status;
wait(&status);
if (!WIFEXITED(status))
- errx(1, "Child died with signal
"
);
+ errx(1, "Child died with signal
%i", WTERMSIG(status)
);
if (WEXITSTATUS(status) != 0)
errx(1, "Child died with error code");
}