monitor: fix use of plain integer as NULL pointer, spotted by Sparse

Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
This commit is contained in:
Blue Swirl 2009-12-04 20:52:02 +00:00
parent d05ac8faf5
commit dd5121bd8a

View File

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