]> git.ipfire.org Git - thirdparty/libvirt.git/commit
virterror: Make SetError work if no previous error was set
authorCole Robinson <crobinso@redhat.com>
Tue, 16 Feb 2010 18:07:31 +0000 (13:07 -0500)
committerCole Robinson <crobinso@redhat.com>
Thu, 18 Feb 2010 14:23:04 +0000 (09:23 -0500)
commitbf6789d913a5edb029af8fe959c0d54ede2a2719
tree19474be9277d910972dd37126499efb5a9ab01eb
parent372a7f45c5c35af4e1fef004775391f0d8c1e7a4
virterror: Make SetError work if no previous error was set

virGetLastError returns NULL if no error has been set, not on
allocation error like virSetError assumed. Use virLastErrorObject
instead. This fixes virSetError when no error is currently stored.
src/util/virterror.c