]> diplodocus.org Git - nmh/blobdiff - sbr/read_switch_multiword.c
Make APPEND work; still needs some changes, though.
[nmh] / sbr / read_switch_multiword.c
index 67c5f33..a5aedae 100644 (file)
@@ -25,12 +25,11 @@ read_switch_multiword (const char *prompt, const struct swit *ansp)
     SIGNAL_HANDLER istat = NULL;
     char *cp, **cpp;
 
-    if (!(sigsetjmp(sigenv, 1))) {
-       istat = SIGNAL (SIGINT, intrser);
-    } else {
+    if (sigsetjmp(sigenv, 1)) {
        SIGNAL (SIGINT, istat);
        return NULL;
     }
+    istat = SIGNAL (SIGINT, intrser);
 
     for (;;) {
        fputs(prompt, stdout);