[libvirt] [PATCH 2/5]: Properly set errors on unknown format types

Chris Lalancette clalance at redhat.com
Tue Oct 21 13:57:00 UTC 2008

Because of my patch last week that converted the various virStorage*FromString
and virStorage*ToString implementations to the generic VIR_ENUM_IMPL, there were
a couple of places that didn't properly set errors when they failed.  This patch
fixes these places up.  It also adds an additional check in virEnumFromString(),
so that if a NULL type is passed in, it fails instead of SEGV'ing.

Signed-off-by: Chris Lalancette <clalance at redhat.com>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: libvirt-logical-rewrite-pool-sources-v3-patch2.patch
Type: text/x-patch
Size: 2615 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20081021/51e1f970/attachment-0001.bin>

More information about the libvir-list mailing list