]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
core: exit early if we hit OOM
authorLennart Poettering <lennart@poettering.net>
Tue, 22 Sep 2015 23:11:08 +0000 (01:11 +0200)
committerLennart Poettering <lennart@poettering.net>
Tue, 29 Sep 2015 19:08:37 +0000 (21:08 +0200)
src/core/main.c

index 509b650395b92de8caab6a79dcd5379c62139f7f..97bad760c1e5fa73ed357c4aa5dd2e7fa5933eb9 100644 (file)
@@ -513,7 +513,7 @@ static int config_parse_join_controllers(const char *unit,
 
                 l = strv_split(word, ",");
                 if (!l)
-                        log_oom();
+                        return log_oom();
                 strv_uniq(l);
 
                 if (strv_length(l) <= 1) {