diff options
author | Carl Worth <cworth@cworth.org> | 2009-12-01 16:46:21 -0800 |
---|---|---|
committer | Carl Worth <cworth@cworth.org> | 2009-12-01 16:46:21 -0800 |
commit | 1466e249e741e3ef907e8c48c2861742b676e255 (patch) | |
tree | 1ce3ac758fa87154e139919d4b1203d92ec6b980 /compat | |
parent | e806e723c8ac8f97a3f8ba0e0048708a8f5bb475 (diff) |
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.
Diffstat (limited to 'compat')
-rw-r--r-- | compat/getdelim.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) |