Module Name: src Committed By: martin Date: Thu Dec 15 20:34:46 UTC 2022
Modified Files: src/usr.sbin/sysinst: util.c Log Message: PR 57100: in manual mode, we can not ignore existing partitions completley, as that causes inconsistent internal state. To generate a diff of this commit: cvs rdiff -u -r1.70 -r1.71 src/usr.sbin/sysinst/util.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/util.c diff -u src/usr.sbin/sysinst/util.c:1.70 src/usr.sbin/sysinst/util.c:1.71 --- src/usr.sbin/sysinst/util.c:1.70 Thu Dec 15 15:32:04 2022 +++ src/usr.sbin/sysinst/util.c Thu Dec 15 20:34:46 2022 @@ -1,4 +1,4 @@ -/* $NetBSD: util.c,v 1.70 2022/12/15 15:32:04 martin Exp $ */ +/* $NetBSD: util.c,v 1.71 2022/12/15 20:34:46 martin Exp $ */ /* * Copyright 1997 Piermont Information Systems Inc. @@ -2462,9 +2462,7 @@ bool empty_usage_set_from_parts(struct partition_usage_set *wanted, struct disk_partitions *parts) { - memset(wanted, 0, sizeof(*wanted)); - wanted->parts = parts; - + usage_set_from_parts(wanted, parts); return true; }