summaryrefslogtreecommitdiff
path: root/sbin
diff options
context:
space:
mode:
authorOtto Moerbeek <otto@cvs.openbsd.org>2016-10-06 13:02:32 +0000
committerOtto Moerbeek <otto@cvs.openbsd.org>2016-10-06 13:02:32 +0000
commitfeda800e365588d9f275f0cd0e1e4f9cef85e355 (patch)
tree7f1917e9c5cb71c2c3e5706e0cefbf920535454e /sbin
parentdfc9f4feba182f094920dd20e209a18c4841de46 (diff)
init auto-partition table to zeroes; ok tb@
Diffstat (limited to 'sbin')
-rw-r--r--sbin/disklabel/editor.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sbin/disklabel/editor.c b/sbin/disklabel/editor.c
index 958f5f20e41..c5a8805466c 100644
--- a/sbin/disklabel/editor.c
+++ b/sbin/disklabel/editor.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: editor.c,v 1.303 2016/09/02 10:47:17 otto Exp $ */
+/* $OpenBSD: editor.c,v 1.304 2016/10/06 13:02:31 otto Exp $ */
/*
* Copyright (c) 1997-2000 Todd C. Miller <Todd.Miller@courtesan.com>
@@ -2386,6 +2386,7 @@ parse_autotable(char *filename)
idx + 1, sizeof(*sa))) == NULL)
err(1, NULL);
sa = &(alloc_table[0].table[idx]);
+ memset(sa, 0, sizeof(*sa));
idx++;
if ((sa->mp = get_token(&buf, &len)) == NULL ||