Module Name:    src
Committed By:   pooka
Date:           Sat Sep  7 18:17:35 UTC 2013

Modified Files:
        src/sys/rump/librump/rumpkern: cons.c

Log Message:
fix -Wuninitialized


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/sys/rump/librump/rumpkern/cons.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/rump/librump/rumpkern/cons.c
diff -u src/sys/rump/librump/rumpkern/cons.c:1.1 src/sys/rump/librump/rumpkern/cons.c:1.2
--- src/sys/rump/librump/rumpkern/cons.c:1.1	Sat Sep  7 17:58:00 2013
+++ src/sys/rump/librump/rumpkern/cons.c	Sat Sep  7 18:17:35 2013
@@ -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 @@ rumpcons_write(struct file *fp, off_t *o
 {
 	char *buf;
 	size_t len, n;
-	int error;
+	int error = 0;
 
 	buf = kmem_alloc(PAGE_SIZE, KM_SLEEP);
 	while (uio->uio_resid > 0) {

Reply via email to