From 12cbbeec17420f3920441849f37f3a036a0b1e52 Mon Sep 17 00:00:00 2001 From: Shuduo Sang Date: Tue, 20 Apr 2021 12:35:42 +0800 Subject: [PATCH] [TD-3801]: taosdump coverity scan issue. (#5844) Co-authored-by: Shuduo Sang --- src/kit/taosdump/taosdump.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/kit/taosdump/taosdump.c b/src/kit/taosdump/taosdump.c index fd6ee9f2fc..3fa934c50b 100644 --- a/src/kit/taosdump/taosdump.c +++ b/src/kit/taosdump/taosdump.c @@ -517,7 +517,8 @@ int main(int argc, char *argv[]) { /* Parse our arguments; every option seen by parse_opt will be reflected in arguments. */ - parse_args(argc, argv, &g_args); + if (argc > 1) + parse_args(argc, argv, &g_args); argp_parse(&argp, argc, argv, 0, 0, &g_args); -- GitLab