]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/core/main.c
core: consistently emit oom warning when parsing args
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Fri, 13 Mar 2020 14:46:30 +0000 (15:46 +0100)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Fri, 13 Mar 2020 14:54:27 +0000 (15:54 +0100)
commitcd57038a30aa9447bde3af7111ac8dc517b38bbf
treeb1f80d13d4b8a968f47d20582a3fc64ad8952162
parent8d0726fcd7b72f2a6f75dd731cbf7c8d4df107ef
core: consistently emit oom warning when parsing args

In practice we are very unlikely to fail at this point, but for
consistency, we should always warn when allocation fails, and
we have free_and_strdup_warn() for this.
src/core/main.c