]> xenbits.xensource.com Git - libvirt.git/commit
Misc error handling fixes in text mode monitor commands
authorDaniel P. Berrange <berrange@redhat.com>
Mon, 1 Nov 2010 17:09:31 +0000 (13:09 -0400)
committerDaniel P. Berrange <berrange@redhat.com>
Tue, 2 Nov 2010 14:38:23 +0000 (14:38 +0000)
commita1de6ba0f10ca53beabf12f83ee305cd27e9681f
treef16767d6e50dfd7544ebcfe57467db657a614288
parent347d266c51705f4987fa5ce2a0ecb314ed8745ce
Misc error handling fixes in text mode monitor commands

A couple of places in the text monitor were overwriting the
'ret' variable with a >= 0 value before success was actually
determined. So later error paths would not correctly return
the -1 value. The drive_add code was not checking for errors
like missing command

* src/qemu/qemu_monitor_text.c: Misc error handling fixes
src/qemu/qemu_monitor_text.c