1
0
mirror of https://github.com/gluster/gluster-block.git synced 2026-02-05 12:45:33 +01:00

coverity: fix multiple issues (#172)

CIDs involved:
326396 - Constant variable guards deadcode
326345 - Argument cannot be negative
326355 - Infinite loop
326371 - Printf format string issue
328498 - Resource leak
328500 - Unchecked return value
326360 - Explicit null dereference

Signed-off-by: Amar Tumballi <amarts@redhat.com>
Reviewed-by: Xiubo Li <xiubli@redhat.com>
Reviewed-by: Prasanna Kumar Kalever <prasanna.kalever@redhat.com>
This commit is contained in:
Amar Tumballi
2019-01-03 16:24:54 +05:30
committed by GitHub
parent 9e38bb5968
commit 0fd2ea41bd
3 changed files with 26 additions and 16 deletions

View File

@@ -949,6 +949,10 @@ glusterBlockParseArgs(int count, char **options)
case GB_CLI_HYPHEN_VERSION:
MSG(stdout, "%s\n", argp_program_version);
goto out;
default:
ret = -1;
goto out;
}
}