From f774002409d8846001d0fc5c1973de1e9550686f Mon Sep 17 00:00:00 2001 From: Phillip Whelan Date: Fri, 21 Oct 2022 00:30:57 -0300 Subject: [PATCH] bin: fix command line parsing with new config format API. (#6239) Signed-off-by: Phillip Whelan Signed-off-by: Manal Geries --- src/fluent-bit.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/fluent-bit.c b/src/fluent-bit.c index 2f9f52660ba..7ca55cac6ae 100644 --- a/src/fluent-bit.c +++ b/src/fluent-bit.c @@ -627,7 +627,7 @@ static int set_property(struct flb_cf *cf, struct flb_cf_section *s, char *kv) } tmp = flb_cf_section_property_add(cf, s->properties, key, 0, value, 0); - if (tmp != 0) { + if (tmp == NULL) { fprintf(stderr, "[error] setting up section '%s' plugin property '%s'\n", s->name, key); }