[libvirt] [libvirt-glib] gconfig: Add precondition checks to some public entry points

2015-06-01 Thread Christophe Fergeau
It's currently possible to trigger a crash by passing eg NULL to these functions. Better to return a prominent warning to the caller without crashing. --- libvirt-gconfig/libvirt-gconfig-domain.c | 28 1 file changed, 28 insertions(+) diff --git

Re: [libvirt] [libvirt-glib] gconfig: Add precondition checks to some public entry points

2015-06-01 Thread Daniel P. Berrange
On Mon, Jun 01, 2015 at 11:34:36AM +0200, Christophe Fergeau wrote: It's currently possible to trigger a crash by passing eg NULL to these functions. Better to return a prominent warning to the caller without crashing. --- libvirt-gconfig/libvirt-gconfig-domain.c | 28