summaryrefslogtreecommitdiff
path: root/src/basic
diff options
context:
space:
mode:
authorThomas Hindoe Paaboel Andersen <phomes@gmail.com>2015-10-26 22:26:49 +0100
committerThomas Hindoe Paaboel Andersen <phomes@gmail.com>2015-10-26 22:31:37 +0100
commitce9d6bcf33865e8fd364083e6b653072a88594c0 (patch)
treecaed11463e77ec263152f4472756a70f800a114d /src/basic
parenta9067193dd883289570b05ff2c9f0c3def302a39 (diff)
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
Diffstat (limited to 'src/basic')
-rw-r--r--src/basic/path-util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/basic/path-util.c b/src/basic/path-util.c
index 0b8cac8f3e..e25e50e78a 100644
--- a/src/basic/path-util.c
+++ b/src/basic/path-util.c
@@ -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) {