[libvirt PATCH] virsh: fix event registration for single event

Michal Prívozník mprivozn at redhat.com
Mon Apr 11 08:09:28 UTC 2022


On 4/11/22 09:33, Ján Tomko wrote:
> Allocate a larger 'data' array than strictly needed
> for simplicity and use 'ndata' as the index when
> filling it to put the single event at the first unused
> place, instead of at its index in the virshDomainEventCallbacks
> array.
> 
> https://bugzilla.redhat.com/show_bug.cgi?id=2073887
> 
> Fixes: c6bb2746933bbe65877a5f8a8d60e100b0bf8a59
> Signed-off-by: Ján Tomko <jtomko at redhat.com>
> ---
>  tools/virsh-domain-event.c | 19 ++++++++-----------
>  1 file changed, 8 insertions(+), 11 deletions(-)

Reviewed-by: Michal Privoznik <mprivozn at redhat.com>

Michal



More information about the libvir-list mailing list