sub_path = NULL;
if (asprintf(&sub_path, "%s/%s", p, dent->d_name) < 0) {
- log_error("Out of memory");
+ log_error("Out of memory.");
r = -ENOMEM;
goto finish;
}
i = new0(Item, 1);
if (!i) {
- log_error("Out of memory");
+ log_error("Out of memory.");
return -ENOMEM;
}
if (buffer[n] != 0 && (buffer[n] != '-' || buffer[n+1] != 0)) {
i->argument = unquote(buffer+n, "\"");
if (!i->argument) {
- log_error("Out of memory");
+ log_error("Out of memory.");
return -ENOMEM;
}
}
STRV_FOREACH(p, search_paths) {
resolved_path = strjoin(*p, "/", fragment, NULL);
if (resolved_path == NULL) {
- log_error("Out of memory");
+ log_error("Out of memory.");
return NULL;
}
globs = hashmap_new(string_hash_func, string_compare_func);
if (!items || !globs) {
- log_error("Out of memory");
+ log_error("Out of memory.");
r = EXIT_FAILURE;
goto finish;
}