Source-Changes-HG archive

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

[src/trunk]: src/sys/rump/librump/rumpkern fix -Wuninitialized



details:   https://anonhg.NetBSD.org/src/rev/d1799c2ef2e2
branches:  trunk
changeset: 789779:d1799c2ef2e2
user:      pooka <pooka%NetBSD.org@localhost>
date:      Sat Sep 07 18:17:35 2013 +0000

description:
fix -Wuninitialized

diffstat:

 sys/rump/librump/rumpkern/cons.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 05c4c3058caf -r d1799c2ef2e2 sys/rump/librump/rumpkern/cons.c
--- a/sys/rump/librump/rumpkern/cons.c  Sat Sep 07 17:58:00 2013 +0000
+++ b/sys/rump/librump/rumpkern/cons.c  Sat Sep 07 18:17:35 2013 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: cons.c,v 1.1 2013/09/07 17:58:00 pooka Exp $   */
+/*     $NetBSD: cons.c,v 1.2 2013/09/07 18:17:35 pooka Exp $   */
 
 /*
  * Copyright (c) 2013 Antti Kantee.  All Rights Reserved.
@@ -35,7 +35,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: cons.c,v 1.1 2013/09/07 17:58:00 pooka Exp $");
+__KERNEL_RCSID(0, "$NetBSD: cons.c,v 1.2 2013/09/07 18:17:35 pooka Exp $");
 
 #include <sys/param.h>
 #include <sys/file.h>
@@ -102,7 +102,7 @@
 {
        char *buf;
        size_t len, n;
-       int error;
+       int error = 0;
 
        buf = kmem_alloc(PAGE_SIZE, KM_SLEEP);
        while (uio->uio_resid > 0) {



Home | Main Index | Thread Index | Old Index