提交 dd5121bd 编写于 作者: B Blue Swirl

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

Signed-off-by: NBlue Swirl <blauwirbel@gmail.com>
上级 d05ac8fa
......@@ -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);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册