Avoid segfault in cpu_dump_state
commitc8f803e77a39584af30082b7ba11e69a9f046224
authorFabien Chouteau <chouteau@adacore.com>
Mon, 14 May 2012 23:39:09 +0000 (14 23:39 +0000)
committerAlexander Graf <agraf@suse.de>
Sat, 23 Jun 2012 23:04:44 +0000 (24 01:04 +0200)
tree50ef2e7275990d71b14b36b8cd64cba533a01b96
parentcba2026a410328216f26db276a6ecf0e55a06e17
Avoid segfault in cpu_dump_state

Do not call cpu_dump_state if logfile is NULL.

Signed-off-by: Fabien Chouteau <chouteau@adacore.com>
[agraf: adjust to inline functions]
Signed-off-by: Alexander Graf <agraf@suse.de>
qemu-log.h