diff options
author | joerg <joerg@pkgsrc.org> | 2008-10-07 15:50:00 +0000 |
---|---|---|
committer | joerg <joerg@pkgsrc.org> | 2008-10-07 15:50:00 +0000 |
commit | d31f76bbcb7e579636f5bb532e94d124a8fea6d2 (patch) | |
tree | 5cea32fbf709b72f43f8cba2c7d36c7aa0aa8420 /net/libfetch | |
parent | 425057caa40aebf992e9e3a7326cab0c484f65dc (diff) | |
download | pkgsrc-d31f76bbcb7e579636f5bb532e94d124a8fea6d2.tar.gz |
Explicitly initialise next to appease GCC and myself as it might be
possible to trigger due to early EOF or timeouts.
Diffstat (limited to 'net/libfetch')
-rw-r--r-- | net/libfetch/files/common.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/net/libfetch/files/common.c b/net/libfetch/files/common.c index b204eff6431..8498cc1eaf4 100644 --- a/net/libfetch/files/common.c +++ b/net/libfetch/files/common.c @@ -1,4 +1,4 @@ -/* $NetBSD: common.c,v 1.15 2008/10/06 23:37:56 joerg Exp $ */ +/* $NetBSD: common.c,v 1.16 2008/10/07 15:50:00 joerg Exp $ */ /*- * Copyright (c) 1998-2004 Dag-Erling Coïdan Smørgrav * Copyright (c) 2008 Joerg Sonnenberger <joerg@NetBSD.org> @@ -484,6 +484,7 @@ fetch_getln(conn_t *conn) conn->buf[0] = '\0'; conn->buflen = 0; + next = NULL; do { len = fetch_read(conn, conn->buf + conn->buflen, |