From c118e55b512ffc30bf0e8ecfe3aa6e152665bbbb Mon Sep 17 00:00:00 2001 From: des Date: Sun, 27 Oct 2002 15:43:40 +0000 Subject: Eliminate two cases of undefined behaviour: total in _fetch_write() was not initialized before use, and _http_growbuf() did not return a value on success. Reported by: Peter Edwards MFC after: 2 weeks --- lib/libfetch/http.c | 1 + 1 file changed, 1 insertion(+) (limited to 'lib/libfetch/http.c') diff --git a/lib/libfetch/http.c b/lib/libfetch/http.c index 3afc5c7..fe8262a 100644 --- a/lib/libfetch/http.c +++ b/lib/libfetch/http.c @@ -179,6 +179,7 @@ _http_growbuf(struct httpio *io, size_t len) return (-1); io->buf = tmp; io->bufsize = len; + return (0); } /* -- cgit v1.1