Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/lib/librumpuser Avoid uninitialised variable warning when gc...



details:   https://anonhg.NetBSD.org/src/rev/e82c49670019
branches:  trunk
changeset: 334813:e82c49670019
user:      justin <justin%NetBSD.org@localhost>
date:      Mon Dec 08 00:12:03 2014 +0000

description:
Avoid uninitialised variable warning when gcc is feeling lazy

diffstat:

 lib/librumpuser/rumpuser_sp.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 27b7c890bd21 -r e82c49670019 lib/librumpuser/rumpuser_sp.c
--- a/lib/librumpuser/rumpuser_sp.c     Sun Dec 07 23:48:04 2014 +0000
+++ b/lib/librumpuser/rumpuser_sp.c     Mon Dec 08 00:12:03 2014 +0000
@@ -1,4 +1,4 @@
-/*      $NetBSD: rumpuser_sp.c,v 1.67 2014/08/25 14:58:48 pooka Exp $  */
+/*      $NetBSD: rumpuser_sp.c,v 1.68 2014/12/08 00:12:03 justin 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.67 2014/08/25 14:58:48 pooka Exp $");
+__RCSID("$NetBSD: rumpuser_sp.c,v 1.68 2014/12/08 00:12:03 justin Exp $");
 #endif /* !lint */
 
 #include <sys/types.h>
@@ -862,7 +862,7 @@
 rumpuser_sp_anonmmap(void *arg, size_t howmuch, void **addr)
 {
        struct spclient *spc = arg;
-       void *resp, *rdata;
+       void *resp, *rdata = NULL; /* XXXuninit */
        int nlocks, rv;
 
        rumpkern_unsched(&nlocks, NULL);



Home | Main Index | Thread Index | Old Index