]> git.proxmox.com Git - qemu.git/commit - block.c
block: Fix build with tracing enabled
authorKevin Wolf <kwolf@redhat.com>
Mon, 22 Apr 2013 15:48:40 +0000 (17:48 +0200)
committerAnthony Liguori <aliguori@us.ibm.com>
Mon, 22 Apr 2013 16:31:41 +0000 (11:31 -0500)
commit456736710df19c2275192269fe67a3f0b2583835
treed00fc8b65ab1c136ce04b2014591ee084bd2de25
parent8e36d6ca34243fdc9f48f4bdbe5fca2b19162bfa
block: Fix build with tracing enabled

filename was still uninitialised when it's used as a parameter to a
tracing function, so let's move the initialisation. Also, commit c2ad1b0c
forgot to add a NULL check, which this patch adds while we're at it.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Tested-by: Andreas Färber <afaerber@suse.de>
Message-id: 1366645720-11384-1-git-send-email-kwolf@redhat.com
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
block.c