From 2885bab40fdc35435e498dde592ea7b1387e22cc Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Wed, 8 Jul 2009 07:49:58 +0930 Subject: [PATCH] Fix uninitialized var. --- ccan/tdb/tools/replay_trace.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ccan/tdb/tools/replay_trace.c b/ccan/tdb/tools/replay_trace.c index 10f9ebf2..0a4201c3 100644 --- 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"); } -- 2.39.2