d->devname = strdup(name);
d->next = rv;
d->used = 0;
+ d->content = NULL;
rv = d;
}
fclose(f);
}
d->next = rv;
d->used = 0;
+ d->content = NULL;
rv = d;
}
free_mdstat(mdstat);
else {
char *t = NULL;
- if (asprintf(&t, "%s %s", alert_mail_from, w) > 0) {
+ if (xasprintf(&t, "%s %s", alert_mail_from, w) > 0) {
free(alert_mail_from);
alert_mail_from = t;
}
t->devname = strdup(globbuf.gl_pathv[i]);
t->next = dlist;
t->used = 0;
+ t->content = NULL;
dlist = t;
/* printf("one dev is %s\n", t->devname);*/
}