]> andersk Git - moira.git/commitdiff
uninitialized variable could cause coredump
authormar <mar>
Mon, 4 Jan 1993 10:21:57 +0000 (10:21 +0000)
committermar <mar>
Mon, 4 Jan 1993 10:21:57 +0000 (10:21 +0000)
clients/mmoira/parser.c

index e90724f3026b7f9061b306ad8c735014caac65f0..a23c51e0ba22a6f0c43fb3ffc180c1220560eb36 100644 (file)
@@ -156,6 +156,7 @@ char *prompt;
 
     n = nod;
     state = MATCH;
+    best = NULNODE;
     for (ln = line; n && state == MATCH; best && (n = best->p_next)) {
        last = best;
        state = single_parse(&ln, n, &best, &ambig, &nomatch);
This page took 0.039882 seconds and 5 git commands to generate.