summaryrefslogtreecommitdiffstats
path: root/cli
diff options
context:
space:
mode:
authorSanju Rakonde <srakonde@redhat.com>2018-08-28 09:06:56 +0530
committerAtin Mukherjee <amukherj@redhat.com>2018-08-29 04:45:46 +0000
commit60ef38482cc8d61711ecc48159cf6c036b1522a8 (patch)
tree932d0407f57b1142e8c8b66a7646c34ea6db0632 /cli
parent043932a4d81c38d88487c2709eceaf8d5b91be35 (diff)
cli: dereferencing null coverity fix
CID: 1124489 https://scan6.coverity.com/reports.htm#v42375/p10714/fileInstanceId=85018660&defectInstanceId=25877775&mergedDefectId=577602 updates: bz#789278 Change-Id: I0ebfbc52ecd5e3b70574df5f286116f872514cc6 Signed-off-by: Sanju Rakonde <srakonde@redhat.com>
Diffstat (limited to 'cli')
-rw-r--r--cli/src/cli-cmd-parser.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cli/src/cli-cmd-parser.c b/cli/src/cli-cmd-parser.c
index 44bef1d82f4..bd876bdb742 100644
--- a/cli/src/cli-cmd-parser.c
+++ b/cli/src/cli-cmd-parser.c
@@ -3216,7 +3216,7 @@ cli_cmd_volume_top_parse (const char **words, int wordcount,
key = (char *) words[index];
value = (char *) words[index+1];
- if ( key && !value ) {
+ if (!key || !value) {
ret = -1;
goto out;
}