mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-11-22 10:58:10 +01:00
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:
parent
e806e723c8
commit
1466e249e7
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue