summaryrefslogtreecommitdiffstats
path: root/managemon.c
diff options
context:
space:
mode:
Diffstat (limited to 'managemon.c')
-rw-r--r--managemon.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/managemon.c b/managemon.c
index ae4ceb5..c771104 100644
--- a/managemon.c
+++ b/managemon.c
@@ -203,6 +203,8 @@ static void manage_new(struct mdstat_ent *mdstat,
new = malloc(sizeof(*new));
+ memset(new, 0, sizeof(*new));
+
new->devnum = mdstat->devnum;
new->prev_state = new->curr_state = new->next_state = inactive;