[libvirt] [PATCH] Don't allow NULL paths for BlockStats and InterfaceStats

Daniel Veillard veillard at redhat.com
Fri Jul 24 15:22:19 UTC 2009


On Fri, Jul 24, 2009 at 11:05:28AM -0400, Cole Robinson wrote:
> Do the check in libvirt.c, to save drivers from the burden. This changes
> behavior slightly in the qemu driver: we no longer explictly error if
> passed an empty string. An error will still be thrown when the device
> lookup fails.

  ACK, I would just add (path[0] = 0) as one of the parameter failure
in libvirt.c directly

Daniel

-- 
Daniel Veillard      | libxml Gnome XML XSLT toolkit  http://xmlsoft.org/
daniel at veillard.com  | Rpmfind RPM search engine http://rpmfind.net/
http://veillard.com/ | virtualization library  http://libvirt.org/




More information about the libvir-list mailing list