Commit 2885bab4 authored by Rusty Russell's avatar Rusty Russell

Fix uninitialized var.

parent 8a98a4bc
...@@ -328,6 +328,8 @@ static void op_analyze_traverse(const char *filename, ...@@ -328,6 +328,8 @@ static void op_analyze_traverse(const char *filename,
int i; int i;
struct traverse *trav = talloc(op, struct traverse); struct traverse *trav = talloc(op, struct traverse);
op[op_num].key = tdb_null;
/* = %u means traverse function terminated. */ /* = %u means traverse function terminated. */
if (words[2]) { if (words[2]) {
if (!streq(words[2], "=") || !words[3] || words[4]) if (!streq(words[2], "=") || !words[3] || words[4])
...@@ -935,7 +937,7 @@ int main(int argc, char *argv[]) ...@@ -935,7 +937,7 @@ int main(int argc, char *argv[])
int status; int status;
wait(&status); wait(&status);
if (!WIFEXITED(status)) if (!WIFEXITED(status))
errx(1, "Child died with signal"); errx(1, "Child died with signal %i", WTERMSIG(status));
if (WEXITSTATUS(status) != 0) if (WEXITSTATUS(status) != 0)
errx(1, "Child died with error code"); errx(1, "Child died with error code");
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment