diff options
author | 2016-10-06 13:02:31 +0000 | |
---|---|---|
committer | 2016-10-06 13:02:31 +0000 | |
commit | ee18520d56aed5df0d7af666706d33d4a6c1a21c (patch) | |
tree | 75bca4f89fadcde9e3e077a8af25c072b8362054 | |
parent | fix HISTORY; (diff) | |
download | wireguard-openbsd-ee18520d56aed5df0d7af666706d33d4a6c1a21c.tar.xz wireguard-openbsd-ee18520d56aed5df0d7af666706d33d4a6c1a21c.zip |
init auto-partition table to zeroes; ok tb@
-rw-r--r-- | sbin/disklabel/editor.c | 3 |
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 || |