partition array. So no need to memset(0) the gpt header before each
MBR_init() invocation.
No functional change.
-/* $OpenBSD: cmd.c,v 1.131 2021/07/17 14:16:34 krw Exp $ */
+/* $OpenBSD: cmd.c,v 1.132 2021/07/17 21:47:56 krw Exp $ */
/*
* Copyright (c) 1997 Tobias Weingartner
GPT_init(GHANDGP);
GPT_print("s", TERSE);
} else {
- memset(&gh, 0, sizeof(gh));
MBR_init(mbr);
MBR_print(mbr, "s");
}
-/* $OpenBSD: fdisk.c,v 1.123 2021/07/17 14:16:34 krw Exp $ */
+/* $OpenBSD: fdisk.c,v 1.124 2021/07/17 21:47:56 krw Exp $ */
/*
* Copyright (c) 1997 Tobias Weingartner
GPT_init(GHANDGP);
query = "Do you wish to write new GPT?";
} else {
- memset(&gh, 0, sizeof(gh));
MBR_init(&initial_mbr);
query = "Do you wish to write new MBR and "
"partition table?";