X-Git-Url: http://git.marmaro.de/?a=blobdiff_plain;f=uip%2Fprompter.c;h=c7eb95787faad7b09aad5bc1e4074972d9b2aa09;hb=cdb32d069bdcb6fa04ca7e3d87240442665611b0;hp=21ec5ced30543a44a11a5d9afd63917c84a1c70f;hpb=a87df3543d3bc128ba4079d1f95638476ba5ca50;p=mmh diff --git a/uip/prompter.c b/uip/prompter.c index 21ec5ce..c7eb957 100644 --- a/uip/prompter.c +++ b/uip/prompter.c @@ -57,7 +57,7 @@ main(int argc, char **argv) int fdi, fdo, i; char *cp, *drft = NULL; enum state state; - struct field f = free_field; + struct field f = {{0}}; char buffer[BUFSIZ], tmpfil[BUFSIZ]; char **arguments, **argp; FILE *in, *out; @@ -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; }