X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=blobdiff_plain;f=compat%2Fgetdelim.c;fp=compat%2Fgetdelim.c;h=407f3d07c7443836a11b5dbc9236337e7e6294e7;hp=1bedef7c903ccb1b2296ef59d674a6d2f898f067;hb=1466e249e741e3ef907e8c48c2861742b676e255;hpb=e806e723c8ac8f97a3f8ba0e0048708a8f5bb475 diff --git a/compat/getdelim.c b/compat/getdelim.c index 1bedef7c..407f3d07 100644 --- a/compat/getdelim.c +++ b/compat/getdelim.c @@ -54,7 +54,7 @@ ssize_t getdelim (char **lineptr, size_t *n, int delimiter, FILE *fp) { - ssize_t result; + ssize_t result = -1; size_t cur_len = 0; if (lineptr == NULL || n == NULL || fp == NULL)