]> git.ipfire.org Git - thirdparty/libvirt.git/commit
virsh: do not unlink NULL file
authorMarc-André Lureau <marcandre.lureau@gmail.com>
Sat, 1 Oct 2011 01:05:13 +0000 (03:05 +0200)
committerEric Blake <eblake@redhat.com>
Sat, 1 Oct 2011 01:22:06 +0000 (19:22 -0600)
commit41bf4e721ec27c326011114f296f4e85876f81fb
tree20402a0629185099defabec8d06893d893b11834
parent30f555c6a8a7f6a801ca8a02b308085f2e364c55
virsh: do not unlink NULL file

error:could not take a screenshot of xp
==6216== Syscall param unlink(pathname) points to unaddressable byte(s)
==6216==    at 0x373A0D4937: unlink (syscall-template.S:82)
==6216==    by 0x40FD73: cmdScreenshot (virsh.c:3070)
==6216==    by 0x42BA0D: vshCommandRun (virsh.c:14920)
==6216==    by 0x42EC97: main (virsh.c:16379)
==6216==  Address 0x0 is not stack'd, malloc'd or (recently) free'd
==6216==
error:Requested operation is not valid: domain is not running
tools/virsh.c