summaryrefslogtreecommitdiffstats
path: root/config.c
diff options
context:
space:
mode:
authorNeil Brown <neilb@suse.de>2001-07-26 20:47:22 +0000
committerNeil Brown <neilb@suse.de>2001-07-26 20:47:22 +0000
commit0db17fcbde740232955a7d5fd57896d8894c9eb5 (patch)
tree169ec3c3342de25f70204f7ee5ef5eadad0f1e16 /config.c
parent5e52ae9ed043588e28a253fb0e794c8d1413c463 (diff)
downloadmdadm-0db17fcbde740232955a7d5fd57896d8894c9eb5.tar.gz
mdadm-0db17fcbde740232955a7d5fd57896d8894c9eb5.tar.xz
mdadm-0db17fcbde740232955a7d5fd57896d8894c9eb5.zip
mdctl-v0.4.2mdctl-v0.4.2
Diffstat (limited to 'config.c')
-rw-r--r--config.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/config.c b/config.c
index 4437de7..2feaae3 100644
--- a/config.c
+++ b/config.c
@@ -216,6 +216,7 @@ int devline(char *line)
}
mddev_uuid_t uuidlist = NULL;
+mddev_uuid_t *uidlp = &uuidlist;
void arrayline(char *line)
{
@@ -254,8 +255,9 @@ void arrayline(char *line)
mu = malloc(sizeof(*mu));
mu->devname = strdup(dev);
memcpy(mu->uuid, uuid, sizeof(uuid));
- mu->next = uuidlist;
- uuidlist = mu;
+ mu->next = NULL;
+ *uidlp = mu;
+ uidlp = &mu->next;
}
}