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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user