On Fri, Feb 8, 2013 at 1:57 PM, Osier Yang <jyang@xxxxxxxxxx> wrote: [...] > That's why I said in previous replyment "initialize ret", I mean > this (see the top of the function): > > int ret = -1; > > And with setting "ret" to 0 before cleanup: > > ret = 0; > cleanup: > virCommandFree(cmd); > return ret; > Okay, it looks well for me. I will give another patch. Thanks for your help ;-) -- Thanks Harry Wei -- libvir-list mailing list libvir-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/libvir-list