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:
1 parent
74400ccfd0
commit
a0f0ae5a7a
1 file changed
+1
-1
+1
-1
@@ -55,7 +55,7 @@ char *fgets_str(FILE *file, const char *terminating_string)
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (idx == 0 || linebuf[0] == '\n') {
|
||||
if (idx == 0) {
|
||||
return NULL;
|
||||
}
|
||||
linebuf[idx] = '\0';
|
||||
|
||||
Reference in new issue
Block a user