monitor: fix use of plain integer as NULL pointer, spotted by Sparse
authorBlue Swirl <blauwirbel@gmail.com>
Fri, 4 Dec 2009 20:52:02 +0000 (20:52 +0000)
committerBlue Swirl <blauwirbel@gmail.com>
Fri, 4 Dec 2009 20:52:02 +0000 (20:52 +0000)
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
monitor.c

index 689a85359b755cb1e32b5d1834efeb5eecc2e127..ba76f3416d611e4abd71a9b44b75c23228c36e08 100644 (file)
--- 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);
     }