getdelim: Silence a (bogus) compiler warning.

Some compilers complain that result might be used uninitialized in
this function. I believe such compilers simply aren't looking hard
enough, but it's easy enough to silence them.
This commit is contained in:
Carl Worth 2009-12-01 16:46:21 -08:00
parent e806e723c8
commit 1466e249e7

View file

@ -54,7 +54,7 @@
ssize_t ssize_t
getdelim (char **lineptr, size_t *n, int delimiter, FILE *fp) getdelim (char **lineptr, size_t *n, int delimiter, FILE *fp)
{ {
ssize_t result; ssize_t result = -1;
size_t cur_len = 0; size_t cur_len = 0;
if (lineptr == NULL || n == NULL || fp == NULL) if (lineptr == NULL || n == NULL || fp == NULL)