mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 07:43:54 -06:00
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
1 changed files with 1 additions and 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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue