diff options
-rw-r--r-- | tools/convbdf.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/convbdf.c b/tools/convbdf.c index 00db9ae61f..3c87df691e 100644 --- a/tools/convbdf.c +++ b/tools/convbdf.c @@ -643,7 +643,7 @@ char *bdf_getline(FILE *fp, char *buf, int len) *b++ = c; } *b = '\0'; - if (c == EOF) + if (c == EOF && b == buf) return NULL; if (b != buf && !isprefix(buf, "COMMENT")) break; |