From dd5121bd8a40fc8900ae3e741aea8eb2e3736839 Mon Sep 17 00:00:00 2001
From: Blue Swirl <blauwirbel@gmail.com>
Date: Fri, 4 Dec 2009 20:52:02 +0000
Subject: [PATCH] monitor: fix use of plain integer as NULL pointer, spotted by
 Sparse

Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
---
 monitor.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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);
     }
 
-- 
2.30.2