Re: [libvirt] [PATCH 1/2] dom event example: init before register event impl

2013-05-10 Thread Michal Privoznik
On 09.05.2013 23:17, Jesse J. Cook wrote: From: Jesse J. Cook jesse.j.c...@member.fsf.org In the domain-events example C code virEventRegisterDefaultImpl was being called before virConnectOpen without first calling virInitialize. While this code worked, it is incorrect. Adding a call to

[libvirt] [PATCH 1/2] dom event example: init before register event impl

2013-05-09 Thread Jesse J. Cook
From: Jesse J. Cook jesse.j.c...@member.fsf.org In the domain-events example C code virEventRegisterDefaultImpl was being called before virConnectOpen without first calling virInitialize. While this code worked, it is incorrect. Adding a call to g_string_new prior to the call to