aboutsummaryrefslogtreecommitdiff
path: root/hmp.c
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 /hmp.c
parentcd2d5541271f1934345d8ca42f5fafff1744eee7 (diff)
downloadqemu-f19e44bc9d5b9302d9ca4dcee52de3fc5d8b50f5.zip
qemu-f19e44bc9d5b9302d9ca4dcee52de3fc5d8b50f5.tar.gz
qemu-f19e44bc9d5b9302d9ca4dcee52de3fc5d8b50f5.tar.bz2
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>
Diffstat (limited to 'hmp.c')
-rw-r--r--hmp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hmp.c b/hmp.c
index b47f331..7690323 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;
}