diff options
author | Neil Brown <neilb@suse.de> | 2001-07-26 20:47:22 +0000 |
---|---|---|
committer | Neil Brown <neilb@suse.de> | 2001-07-26 20:47:22 +0000 |
commit | 0db17fcbde740232955a7d5fd57896d8894c9eb5 (patch) | |
tree | 169ec3c3342de25f70204f7ee5ef5eadad0f1e16 /config.c | |
parent | 5e52ae9ed043588e28a253fb0e794c8d1413c463 (diff) | |
download | mdadm-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.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -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; } } |