From: Blue Swirl Date: Fri, 4 Dec 2009 20:52:02 +0000 (+0000) Subject: monitor: fix use of plain integer as NULL pointer, spotted by Sparse X-Git-Tag: v0.12.0-rc0~12 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=dd5121bd8a40fc8900ae3e741aea8eb2e3736839;p=users%2Fdwmw2%2Fqemu.git monitor: fix use of plain integer as NULL pointer, spotted by Sparse Signed-off-by: Blue Swirl --- 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); }