Avoid unnecessary double-initialization.

This commit is contained in:
Dianne Skoll
2024-09-12 11:38:59 -04:00
parent 3389f1c91b
commit 76c1e2abb3

View File

@@ -152,7 +152,6 @@ int DBufGets(DynamicBuffer *dbuf, FILE *fp)
/* Try reading the first few bytes right into the buffer --
we can usually save some unnecessary copying */
*(dbuf->buffer) = 0;
if (fgets(dbuf->buffer, dbuf->allocatedLen, fp) == NULL) {
return OK;
}