Source-Changes-HG archive

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

[src/trunk]: src/usr.sbin/sysinst Fix unitialized variable



details:   https://anonhg.NetBSD.org/src/rev/b588a3f07f46
branches:  trunk
changeset: 999646:b588a3f07f46
user:      martin <martin%NetBSD.org@localhost>
date:      Thu Jun 13 06:20:34 2019 +0000

description:
Fix unitialized variable

diffstat:

 usr.sbin/sysinst/disklabel.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r 86f387f7f49a -r b588a3f07f46 usr.sbin/sysinst/disklabel.c
--- a/usr.sbin/sysinst/disklabel.c      Thu Jun 13 05:19:40 2019 +0000
+++ b/usr.sbin/sysinst/disklabel.c      Thu Jun 13 06:20:34 2019 +0000
@@ -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 @@
            (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;



Home | Main Index | Thread Index | Old Index