Comment 12 for bug 1582990

Revision history for this message
Christian Ehrhardt  (paelzer) wrote : Re: [Bug 1582990] Re: internal error: End of file from monitor

On Wed, Mar 8, 2017 at 2:01 AM, Seth Arnold <email address hidden>
wrote:

> Is the bool getting the
> correct initial value due to a 'memset 0' when the struct is
> initialized? Or does this also need an explicit initializer?
>

Hi,
as always in libvirt things are a bit more abstracted.
After a trip through somewhat object oriented code in C (which I don't want
to bother you) I can confirm that eventually is is a calloc that gets the
structs memory (src/util/viralloc.c:560).
Also an indicator - the other struct vars have no initiaizers either.

So I think it does not need an explicit initializer.