Module Name:    src
Committed By:   martin
Date:           Thu Jun 13 06:20:35 UTC 2019

Modified Files:
        src/usr.sbin/sysinst: disklabel.c

Log Message:
Fix unitialized variable


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/usr.sbin/sysinst/disklabel.c

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

Modified files:

Index: src/usr.sbin/sysinst/disklabel.c
diff -u src/usr.sbin/sysinst/disklabel.c:1.1 src/usr.sbin/sysinst/disklabel.c:1.2
--- src/usr.sbin/sysinst/disklabel.c:1.1	Wed Jun 12 06:20:17 2019
+++ src/usr.sbin/sysinst/disklabel.c	Thu Jun 13 06:20:34 2019
@@ -1,4 +1,4 @@
-/*	$NetBSD: disklabel.c,v 1.1 2019/06/12 06:20:17 martin Exp $	*/
+/*	$NetBSD: disklabel.c,v 1.2 2019/06/13 06:20:34 martin Exp $	*/
 
 /*
  * Copyright 2018 The NetBSD Foundation, Inc.
@@ -264,7 +264,7 @@ disklabel_write_to_disk(struct disk_part
 	    (struct disklabel_disk_partitions*)arg;
 	FILE *f;
 	char fname[PATH_MAX], packname[sizeof(parts->l.d_packname)+1];
-	int i, rv;
+	int i, rv = 0;
 	const char *disk = parts->dp.disk, *s;
 	const struct partition *lp;
 	char *d;

Reply via email to