X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/6c42153ad9362cc676ea66563bf400d7511b3b68..676aafb5cca9531170843b28fe4e3ba12c322c50:/sbr/getans.c?ds=inline diff --git a/sbr/getans.c b/sbr/getans.c index 80eeb710..deb884e1 100644 --- a/sbr/getans.c +++ b/sbr/getans.c @@ -27,7 +27,7 @@ char ** getans (char *prompt, struct swit *ansp) { int i; - SIGNAL_HANDLER istat; + SIGNAL_HANDLER istat = NULL; char *cp, **cpp; if (!(setjmp (sigenv))) { @@ -50,7 +50,7 @@ getans (char *prompt, struct swit *ansp) *cp = '\0'; if (ansbuf[0] == '?' || cp == ansbuf) { printf ("Options are:\n"); - print_sw (ALL, ansp, ""); + print_sw (ALL, ansp, "", stdout); continue; } cpp = brkstring (ansbuf, " ", NULL);