]> git.proxmox.com Git - qemu.git/commit - monitor.c
do not check pointers after dereferencing them
authorPaolo Bonzini <pbonzini@redhat.com>
Fri, 31 May 2013 12:00:27 +0000 (14:00 +0200)
committerMichael Tokarev <mjt@tls.msk.ru>
Sat, 1 Jun 2013 10:25:39 +0000 (14:25 +0400)
commita4cc73d629d43c8a4d171d043ff229a959df3ca6
treee4217378c556489b6f2f6e9b747978d931e7527b
parentcd2e64ce306910f6a627d899e6779eda33f8511c
do not check pointers after dereferencing them

Two instances, both spotted by Coverity.  In one, two blocks were
swapped.  In the other, the check is not needed anymore.

Cc: qemu-stable@nongnu.org
Cc: qemu-trivial@nongnu.org
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
monitor.c
savevm.c