Revert that change. As Matt Kraai rightly points out,

this is not a bug.  What I was I thinking when I committed
this.  Doh!
This commit is contained in:
Eric Andersen 2001-10-18 06:04:23 +00:00
parent 74400ccfd0
commit a0f0ae5a7a

View File

@ -55,7 +55,7 @@ char *fgets_str(FILE *file, const char *terminating_string)
break; break;
} }
} }
if (idx == 0 || linebuf[0] == '\n') { if (idx == 0) {
return NULL; return NULL;
} }
linebuf[idx] = '\0'; linebuf[idx] = '\0';