summaryrefslogtreecommitdiff
path: root/net/libfetch
diff options
context:
space:
mode:
authorjoerg <joerg@pkgsrc.org>2008-10-07 15:50:00 +0000
committerjoerg <joerg@pkgsrc.org>2008-10-07 15:50:00 +0000
commitcd67461a18c80718a3acec729629bd4eacc82160 (patch)
tree5cea32fbf709b72f43f8cba2c7d36c7aa0aa8420 /net/libfetch
parent1c20f2b1951a6e9fe8afa83b4ad2a0132864bc73 (diff)
downloadpkgsrc-cd67461a18c80718a3acec729629bd4eacc82160.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.c3
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,