[PATCH 0/2] Domain event example C code misues api

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: "Jesse J. Cook" <jcook@xxxxxxxxxx>

The example program makes a call to virEventRegisterDefaultImpl before calling
virConnectOpen without a call to virInitialize. Interestingly enough, the
example code works.  However, once you introduce a call to g_string_new it
breaks. This can result in unintentional misuse of the API.

Relates to: Red Hat Bugzilla – Bug 961155

Jesse J. Cook (2):
  dom event example: init before register event impl
  dom event example: Add error check to impl call

 examples/domain-events/events-c/event-test.c |   12 +++++++++++-
 1 file changed, 11 insertions(+), 1 deletion(-)

-- 
1.7.10.4

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list





[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]