aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Weil <sw@weilnetz.de>2015-02-08 15:40:48 +0100
committerLuiz Capitulino <lcapitulino@redhat.com>2015-02-23 10:55:20 -0500
commitf19e44bc9d5b9302d9ca4dcee52de3fc5d8b50f5 (patch)
tree0eb4afca853dab3858f03b50970098a52d6f92a9
parentcd2d5541271f1934345d8ca42f5fafff1744eee7 (diff)
hmp: Fix warning from smatch (wrong argument in function call)
Fix this warning: hmp.c:414:38: warning: Using plain integer as NULL pointer qmp_query_block expects a pointer argument, so passing false is wrong. Cc: Luiz Capitulino <lcapitulino@redhat.com> Signed-off-by: Stefan Weil <sw@weilnetz.de> Reviewed-by: Markus Armbruster <armbru@redhat.com> Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
-rw-r--r--hmp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hmp.c b/hmp.c
index b47f331f4d..7690323e28 100644
--- a/hmp.c
+++ b/hmp.c
@@ -411,7 +411,7 @@ void hmp_info_block(Monitor *mon, const QDict *qdict)
/* Print BlockBackend information */
if (!nodes) {
- block_list = qmp_query_block(false);
+ block_list = qmp_query_block(NULL);
} else {
block_list = NULL;
}