]> git.marmaro.de Git - mmh/commitdiff
fix segfault in prompter
authorPhilipp Takacs <philipp@bureaucracy.de>
Fri, 27 Nov 2015 10:54:24 +0000 (11:54 +0100)
committerPhilipp Takacs <philipp@bureaucracy.de>
Fri, 27 Nov 2015 10:54:24 +0000 (11:54 +0100)
This was necesary because m_getfld2() clears now f.value
if FILEEOF2 is reached

uip/prompter.c

index 21ec5ced30543a44a11a5d9afd63917c84a1c70f..c715cb710445a8c039dff38b2c54c77d270369c4 100644 (file)
@@ -184,7 +184,7 @@ abort:
                case FILEEOF2:
                        fprintf(out, "--------\n");
                        if (qbody) {
-                               if (!*f.value) {
+                               if (f.value == NULL) {
                                        printf("--------\n");
                                        goto has_no_body;
                                }