]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
core: add missing log_oom()
authorYu Watanabe <watanabe.yu+github@gmail.com>
Sun, 17 Jan 2021 16:24:10 +0000 (01:24 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Sun, 17 Jan 2021 16:25:05 +0000 (01:25 +0900)
src/core/load-fragment.c

index 940d9217ccc08789d013ea97c5d998c090a7cfda..bc87b8d372f743ab2af4be8e53f2af9f9ed1e8d4 100644 (file)
@@ -2743,7 +2743,7 @@ int config_parse_pass_environ(
         if (n) {
                 r = strv_extend_strv(passenv, n, true);
                 if (r < 0)
-                        return r;
+                        return log_oom();
         }
 
         return 0;
@@ -2818,7 +2818,7 @@ int config_parse_unset_environ(
         if (n) {
                 r = strv_extend_strv(unsetenv, n, true);
                 if (r < 0)
-                        return r;
+                        return log_oom();
         }
 
         return 0;