mirror of
https://salsa.debian.org/dskoll/remind.git
synced 2026-04-17 23:08:40 +02:00
Avoid unnecessary double-initialization.
This commit is contained in:
@@ -152,7 +152,6 @@ int DBufGets(DynamicBuffer *dbuf, FILE *fp)
|
|||||||
/* Try reading the first few bytes right into the buffer --
|
/* Try reading the first few bytes right into the buffer --
|
||||||
we can usually save some unnecessary copying */
|
we can usually save some unnecessary copying */
|
||||||
|
|
||||||
*(dbuf->buffer) = 0;
|
|
||||||
if (fgets(dbuf->buffer, dbuf->allocatedLen, fp) == NULL) {
|
if (fgets(dbuf->buffer, dbuf->allocatedLen, fp) == NULL) {
|
||||||
return OK;
|
return OK;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user