diff options
author | Blue Swirl <blauwirbel@gmail.com> | 2009-12-04 20:52:02 +0000 |
---|---|---|
committer | Blue Swirl <blauwirbel@gmail.com> | 2009-12-04 20:52:02 +0000 |
commit | dd5121bd8a40fc8900ae3e741aea8eb2e3736839 (patch) | |
tree | cc3776faaf223b053e33e493a16f7e3c31195c35 /monitor.c | |
parent | d05ac8faf57d5f0bc9310e41a3a9099397a778a5 (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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); } |