Other locations in the configuration parser use 'memory allocation failed', so
use this one as well.
p = calloc(1, sizeof(*p));
if (p == NULL) {
- memprintf(err, "out of memory error");
+ memprintf(err, "memory allocation failed");
goto err;
}
p->path = strdup(path);
if (p->path == NULL) {
- memprintf(err, "out of memory error");
+ memprintf(err, "memory allocation failed");
goto err2;
}
p->type = strdup(type);
if (p->type == NULL) {
- memprintf(err, "out of memory error");
+ memprintf(err, "memory allocation failed");
goto err2;
}
LIST_ADDQ(&prepend_path_list, &p->l);