mirror of https://github.com/xemu-project/xemu.git
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:
parent
d05ac8faf5
commit
dd5121bd8a
|
@ -3757,7 +3757,7 @@ static int monitor_check_qmp_args(const mon_cmd_t *cmd, QDict *args)
|
||||||
const char *p;
|
const char *p;
|
||||||
CmdArgs cmd_args;
|
CmdArgs cmd_args;
|
||||||
|
|
||||||
if (cmd->args_type == '\0') {
|
if (cmd->args_type == NULL) {
|
||||||
return (qdict_size(args) == 0 ? 0 : -1);
|
return (qdict_size(args) == 0 ? 0 : -1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue