source prt has prt_ns == 0 or prt_id == DOSPTYP_UNUSED.
No functional change.
-/* $OpenBSD: part.c,v 1.110 2021/10/18 20:27:32 krw Exp $ */
+/* $OpenBSD: part.c,v 1.111 2022/01/18 19:37:27 krw Exp $ */
/*
* Copyright (c) 1997 Tobias Weingartner
uint64_t off, t;
uint32_t ecyl, scyl;
+ if (prt->prt_ns == 0 || prt->prt_id == DOSPTYP_UNUSED) {
+ memset(dp, 0, sizeof(*dp));
+ return;
+ }
+
scyl = (prt->prt_scyl > 1023) ? 1023 : prt->prt_scyl;
ecyl = (prt->prt_ecyl > 1023) ? 1023 : prt->prt_ecyl;