summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tools/convbdf.c2
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)
643 *b++ = c; 643 *b++ = c;
644 } 644 }
645 *b = '\0'; 645 *b = '\0';
646 if (c == EOF) 646 if (c == EOF && b == buf)
647 return NULL; 647 return NULL;
648 if (b != buf && !isprefix(buf, "COMMENT")) 648 if (b != buf && !isprefix(buf, "COMMENT"))
649 break; 649 break;