path-util: do not return NULL as int

strv_split will only return NULL on oom so we should return -ENOMEM
instead.

Looks like an oversight from the changes in 0f474365
This commit is contained in:
Thomas Hindoe Paaboel Andersen
2015-10-26 22:31:37 +01:00
parent a9067193dd
commit ce9d6bcf33
+1 -1
View File
@@ -95,7 +95,7 @@ int path_split_and_make_absolute(const char *p, char ***ret) {
l = strv_split(p, ":");
if (!l)
return NULL;
return -ENOMEM;
r = path_strv_make_absolute_cwd(l);
if (r < 0) {