Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/librumpuser Workaround a gcc -Wuninitilized whine
details: https://anonhg.NetBSD.org/src/rev/0e2259a230cc
branches: trunk
changeset: 791050:0e2259a230cc
user: pooka <pooka%NetBSD.org@localhost>
date: Fri Nov 01 23:22:13 2013 +0000
description:
Workaround a gcc -Wuninitilized whine
github/buildrump.sh issue #44
diffstat:
lib/librumpuser/rumpuser_sp.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 0b5b23d23f52 -r 0e2259a230cc lib/librumpuser/rumpuser_sp.c
--- a/lib/librumpuser/rumpuser_sp.c Fri Nov 01 21:39:13 2013 +0000
+++ b/lib/librumpuser/rumpuser_sp.c Fri Nov 01 23:22:13 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: rumpuser_sp.c,v 1.60 2013/10/27 16:39:46 rmind Exp $ */
+/* $NetBSD: rumpuser_sp.c,v 1.61 2013/11/01 23:22:13 pooka Exp $ */
/*
* Copyright (c) 2010, 2011 Antti Kantee. All Rights Reserved.
@@ -37,7 +37,7 @@
#include "rumpuser_port.h"
#if !defined(lint)
-__RCSID("$NetBSD: rumpuser_sp.c,v 1.60 2013/10/27 16:39:46 rmind Exp $");
+__RCSID("$NetBSD: rumpuser_sp.c,v 1.61 2013/11/01 23:22:13 pooka Exp $");
#endif /* !lint */
#include <sys/types.h>
@@ -1318,7 +1318,7 @@
struct spservarg *sarg;
struct sockaddr *sap;
char *p;
- unsigned idx;
+ unsigned idx = 0; /* XXXgcc */
int error, s;
p = strdup(url);
Home |
Main Index |
Thread Index |
Old Index