From: Yu Watanabe Date: Thu, 10 Sep 2020 05:14:19 +0000 (+0900) Subject: conf-parser: logs about OOM error X-Git-Tag: v247-rc1~262^2~8 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=7a602af0414a1a2dcedf3513c8d1bd14cf11ff2f;p=thirdparty%2Fsystemd.git conf-parser: logs about OOM error --- diff --git a/src/shared/conf-parser.c b/src/shared/conf-parser.c index f4ef7269a8e..90f08252ab0 100644 --- a/src/shared/conf-parser.c +++ b/src/shared/conf-parser.c @@ -188,7 +188,7 @@ static int parse_line( n = strndup(l+1, k-2); if (!n) - return -ENOMEM; + return log_oom(); if (sections && !nulstr_contains(sections, n)) { bool ignore = flags & CONFIG_PARSE_RELAXED;