]> git.proxmox.com Git - mirror_qemu.git/commit - hmp.c
hmp: Guard against misuse of hmp_handle_error()
authorMarkus Armbruster <armbru@redhat.com>
Fri, 2 May 2014 11:26:34 +0000 (13:26 +0200)
committerLuiz Capitulino <lcapitulino@redhat.com>
Fri, 9 May 2014 13:11:31 +0000 (09:11 -0400)
commit415168e0c7bda5371a876914d4fdb68c4556f28d
tree31a7ac1f696816f8768ce1434120888c82702ece
parenta903f40c314c57734ffd651786c953541cfc43a8
hmp: Guard against misuse of hmp_handle_error()

Null errp argument makes no sense.  Assert it's not null, to make this
explicit, and guard against misuse.  All current callers pass non-null
errp.

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
hmp.c