aboutsummaryrefslogtreecommitdiff
path: root/monitor.c
diff options
context:
space:
mode:
authorBlue Swirl <blauwirbel@gmail.com>2009-12-04 20:52:02 +0000
committerBlue Swirl <blauwirbel@gmail.com>2009-12-04 20:52:02 +0000
commitdd5121bd8a40fc8900ae3e741aea8eb2e3736839 (patch)
treecc3776faaf223b053e33e493a16f7e3c31195c35 /monitor.c
parentd05ac8faf57d5f0bc9310e41a3a9099397a778a5 (diff)
monitor: fix use of plain integer as NULL pointer, spotted by Sparse
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Diffstat (limited to 'monitor.c')
-rw-r--r--monitor.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/monitor.c b/monitor.c
index 689a85359b..ba76f3416d 100644
--- a/monitor.c
+++ b/monitor.c
@@ -3757,7 +3757,7 @@ static int monitor_check_qmp_args(const mon_cmd_t *cmd, QDict *args)
const char *p;
CmdArgs cmd_args;
- if (cmd->args_type == '\0') {
+ if (cmd->args_type == NULL) {
return (qdict_size(args) == 0 ? 0 : -1);
}