summaryrefslogtreecommitdiffstats
path: root/config.c
diff options
context:
space:
mode:
Diffstat (limited to 'config.c')
-rw-r--r--config.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/config.c b/config.c
index 8382cdf..d753f54 100644
--- a/config.c
+++ b/config.c
@@ -246,6 +246,7 @@ mddev_dev_t load_partitions(void)
d = malloc(sizeof(*d));
d->devname = strdup(name);
d->next = rv;
+ d->used = 0;
rv = d;
}
fclose(f);
@@ -716,6 +717,7 @@ mddev_dev_t conf_get_devs(char *conffile)
mddev_dev_t t = malloc(sizeof(*t));
t->devname = strdup(globbuf.gl_pathv[i]);
t->next = dlist;
+ t->used = 0;
dlist = t;
/* printf("one dev is %s\n", t->devname);*/
}