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 copy paste error. from coverity.



details:   https://anonhg.NetBSD.org/src/rev/b791fed4a61e
branches:  trunk
changeset: 829386:b791fed4a61e
user:      maya <maya%NetBSD.org@localhost>
date:      Sun Jan 28 14:34:26 2018 +0000

description:
Fix copy paste error. from coverity.

diffstat:

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

diffs (18 lines):

diff -r 023596d5a93f -r b791fed4a61e usr.sbin/sysinst/partman.c
--- a/usr.sbin/sysinst/partman.c        Sun Jan 28 14:34:06 2018 +0000
+++ b/usr.sbin/sysinst/partman.c        Sun Jan 28 14:34:26 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: partman.c,v 1.15 2017/01/12 17:38:08 christos Exp $ */
+/*     $NetBSD: partman.c,v 1.16 2018/01/28 14:34:26 maya Exp $ */
 
 /*
  * Copyright 2012 Eugene Lozovoy
@@ -2742,7 +2742,7 @@
 
                if (!have_cgd)
                        remove_cgd_options();
-               else if (!(cgds = calloc(sizeof(*vnds), MAX_CGD)))
+               else if (!(cgds = calloc(sizeof(*cgds), MAX_CGD)))
                        have_cgd = 0;
 
                if (!have_lvm)



Home | Main Index | Thread Index | Old Index