summaryrefslogtreecommitdiffstats
path: root/sbin/gpt/map.c
diff options
context:
space:
mode:
Diffstat (limited to 'sbin/gpt/map.c')
-rw-r--r--sbin/gpt/map.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sbin/gpt/map.c b/sbin/gpt/map.c
index fbce87f..0a71f83 100644
--- a/sbin/gpt/map.c
+++ b/sbin/gpt/map.c
@@ -49,6 +49,7 @@ mkmap(off_t start, off_t size, int type)
m->map_size = size;
m->map_next = m->map_prev = NULL;
m->map_type = type;
+ m->map_index = 0;
m->map_data = NULL;
return (m);
}
OpenPOWER on IntegriCloud