From f830843442664eb70ad0361a4d7eee8e30044021 Mon Sep 17 00:00:00 2001 From: iceman1001 Date: Tue, 2 Jun 2020 13:09:29 +0200 Subject: [PATCH] coverity.. --- client/deps/cliparser/cliparser.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/client/deps/cliparser/cliparser.c b/client/deps/cliparser/cliparser.c index 1e379556d..b3beb6ae0 100644 --- a/client/deps/cliparser/cliparser.c +++ b/client/deps/cliparser/cliparser.c @@ -146,9 +146,10 @@ int CLIParserParseStringEx(CLIParserContext *ctx, const char *str, void *vargtab } void CLIParserFree(CLIParserContext *ctx) { - if (ctx) { + if (ctx != NULL) { arg_freetable(ctx->argtable, ctx->argtableLen); free(ctx); + ctx = NULL; } }