summaryrefslogtreecommitdiffstats
path: root/sbin
diff options
context:
space:
mode:
Diffstat (limited to 'sbin')
-rw-r--r--sbin/bsdlabel/bsdlabel.c3
-rw-r--r--sbin/disklabel/disklabel.c3
2 files changed, 6 insertions, 0 deletions
diff --git a/sbin/bsdlabel/bsdlabel.c b/sbin/bsdlabel/bsdlabel.c
index 786ca62..bbcf0d0 100644
--- a/sbin/bsdlabel/bsdlabel.c
+++ b/sbin/bsdlabel/bsdlabel.c
@@ -957,6 +957,9 @@ getasciilabel(FILE *f, struct disklabel *lp)
int lineno = 0, errors = 0;
int i;
+ bzero(&part_set, sizeof(part_set));
+ bzero(&part_size_type, sizeof(part_size_type));
+ bzero(&part_offset_type, sizeof(part_offset_type));
lp->d_bbsize = BBSIZE; /* XXX */
lp->d_sbsize = 0; /* XXX */
while (fgets(line, sizeof(line) - 1, f)) {
diff --git a/sbin/disklabel/disklabel.c b/sbin/disklabel/disklabel.c
index 786ca62..bbcf0d0 100644
--- a/sbin/disklabel/disklabel.c
+++ b/sbin/disklabel/disklabel.c
@@ -957,6 +957,9 @@ getasciilabel(FILE *f, struct disklabel *lp)
int lineno = 0, errors = 0;
int i;
+ bzero(&part_set, sizeof(part_set));
+ bzero(&part_size_type, sizeof(part_size_type));
+ bzero(&part_offset_type, sizeof(part_offset_type));
lp->d_bbsize = BBSIZE; /* XXX */
lp->d_sbsize = 0; /* XXX */
while (fgets(line, sizeof(line) - 1, f)) {
OpenPOWER on IntegriCloud