From ce9d6bcf33865e8fd364083e6b653072a88594c0 Mon Sep 17 00:00:00 2001 From: Thomas Hindoe Paaboel Andersen Date: Mon, 26 Oct 2015 22:26:49 +0100 Subject: 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 --- src/basic/path-util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) { -- cgit v1.2.3-54-g00ecf