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:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user