From: Thomas Hindoe Paaboel Andersen Date: Mon, 26 Oct 2015 21:26:49 +0000 (+0100) Subject: path-util: do not return NULL as int X-Git-Tag: v228~142^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ce9d6bcf33865e8fd364083e6b653072a88594c0;p=platform%2Fupstream%2Fsystemd.git 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 --- diff --git a/src/basic/path-util.c b/src/basic/path-util.c index 0b8cac8..e25e50e 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) {