projects
/
mmh
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a87df35
)
fix segfault in prompter
author
Philipp Takacs
<philipp@bureaucracy.de>
Fri, 27 Nov 2015 10:54:24 +0000
(11:54 +0100)
committer
Philipp 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
patch
|
blob
|
history
diff --git
a/uip/prompter.c
b/uip/prompter.c
index
21ec5ce
..
c715cb7
100644
(file)
--- 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;
}