Re: [libvirt] [PATCH 8/8] add missing error handling to virGetDomain

2011-02-14 Thread Daniel Veillard
On Sun, Feb 13, 2011 at 10:45:24PM +0100, Christophe Fergeau wrote: When creating the virDomain::snapshots hash table, virGetDomain wasn't checking if the creation was successful. This would then lead to failures in the vir*DomainSnapshot functions. Better to report this error early and make

[libvirt] [PATCH 8/8] add missing error handling to virGetDomain

2011-02-13 Thread Christophe Fergeau
When creating the virDomain::snapshots hash table, virGetDomain wasn't checking if the creation was successful. This would then lead to failures in the vir*DomainSnapshot functions. Better to report this error early and make virGetDomain fail if the snapshots hash couldn't be created. ---