From 2822061d0e17d5acdbc46740b535021115f11071 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sat, 9 Nov 2024 09:09:56 +0100 Subject: Adding upstream version 2.11. Signed-off-by: Daniel Baumann --- plugins/fdp/fdp.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'plugins/fdp') diff --git a/plugins/fdp/fdp.c b/plugins/fdp/fdp.c index 1efdd76..cac0b2b 100644 --- a/plugins/fdp/fdp.c +++ b/plugins/fdp/fdp.c @@ -57,7 +57,7 @@ static int fdp_configs(int argc, char **argv, struct command *cmd, return err; err = validate_output_format(cfg.output_format, &flags); - if (flags < 0) + if (err < 0) goto out; if (cfg.raw_binary) @@ -138,7 +138,7 @@ static int fdp_usage(int argc, char **argv, struct command *cmd, struct plugin * return err; err = validate_output_format(cfg.output_format, &flags); - if (flags < 0) + if (err < 0) goto out; if (cfg.raw_binary) @@ -209,7 +209,7 @@ static int fdp_stats(int argc, char **argv, struct command *cmd, struct plugin * return err; err = validate_output_format(cfg.output_format, &flags); - if (flags < 0) + if (err < 0) goto out; if (cfg.raw_binary) @@ -270,7 +270,7 @@ static int fdp_events(int argc, char **argv, struct command *cmd, struct plugin return err; err = validate_output_format(cfg.output_format, &flags); - if (flags < 0) + if (err < 0) goto out; if (cfg.raw_binary) @@ -329,7 +329,7 @@ static int fdp_status(int argc, char **argv, struct command *cmd, struct plugin return err; err = validate_output_format(cfg.output_format, &flags); - if (flags < 0) + if (err < 0) goto out; if (cfg.raw_binary) -- cgit v1.2.3