From fc1b00d424f47972a8311b3706304258e111d8d4 Mon Sep 17 00:00:00 2001 From: Philipp Takacs Date: Fri, 27 Nov 2015 11:54:24 +0100 Subject: [PATCH] fix segfault in prompter This was necesary because m_getfld2() clears now f.value if FILEEOF2 is reached --- uip/prompter.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/uip/prompter.c b/uip/prompter.c index 21ec5ce..c715cb7 100644 --- a/uip/prompter.c +++ b/uip/prompter.c @@ -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; } -- 1.7.10.4