From a59912ecc812b00fe14c8a571a1683f154fd4d94 Mon Sep 17 00:00:00 2001 From: Jeremy Sowden Date: Sun, 21 Nov 2021 20:41:36 +0000 Subject: [PATCH] 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 --- src/ulogd.c | 1 - 1 file changed, 1 deletion(-) 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; } -- 2.47.2