From: Jeremy Sowden Date: Sun, 21 Nov 2021 20:41:36 +0000 (+0000) Subject: ulogd: remove empty log-line X-Git-Tag: ulogd-2.0.8~53 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a59912ecc812b00fe14c8a571a1683f154fd4d94;p=thirdparty%2Fulogd2.git ulogd: remove empty log-line There is a `strdup` at the beginning of `create_stack`. If it fails, an empty log-line is printed. It's not useful, so remove it. This is consistent with the error-handling of the `malloc` which immediately follows it. Signed-off-by: Jeremy Sowden Signed-off-by: Pablo Neira Ayuso --- diff --git a/src/ulogd.c b/src/ulogd.c index 9cd64e8..a31b355 100644 --- a/src/ulogd.c +++ b/src/ulogd.c @@ -965,7 +965,6 @@ static int create_stack(const char *option) load_all_plugins(); if (!buf) { - ulogd_log(ULOGD_ERROR, ""); ret = -ENOMEM; goto out_buf; }