diff options
author | Stefan Weil <sw@weilnetz.de> | 2015-02-08 15:40:48 +0100 |
---|---|---|
committer | Luiz Capitulino <lcapitulino@redhat.com> | 2015-02-23 10:55:20 -0500 |
commit | f19e44bc9d5b9302d9ca4dcee52de3fc5d8b50f5 (patch) | |
tree | 0eb4afca853dab3858f03b50970098a52d6f92a9 | |
parent | cd2d5541271f1934345d8ca42f5fafff1744eee7 (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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; } |