[libvirt] [PATCH 07/16] snapshot: Add accessors for updating snapshot list relations

Eric Blake eblake at redhat.com
Thu Mar 28 13:58:05 UTC 2019


On 3/28/19 8:51 AM, Eric Blake wrote:

> 
> So gcc isn't as smart as Coverity at seeing that it will always be
> initialized.
> 
>>
>> This fixes it:
>>
>> 	diff --git a/src/conf/virdomainmomentobjlist.c b/src/conf/virdomainmomentobjlist.c
>> 	index 92cf52dd..2e9343ff 100644
>> 	--- a/src/conf/virdomainmomentobjlist.c
>> 	+++ b/src/conf/virdomainmomentobjlist.c
>> 	@@ -165,7 +165,7 @@ virDomainMomentMoveChildren(virDomainMomentObjPtr from,
>> 								 virDomainMomentObjPtr to)
>> 	 {
>> 		 virDomainMomentObjPtr child;
>> 	-    virDomainMomentObjPtr last;
>> 	+    virDomainMomentObjPtr last = NULL;
> 
> Yep, will push shortly as a build-fixer. I'm assuming you're okay if I
> push it in your name, as you reported and posted the fix, even though it
> wasn't the usual git format.

Actually, I'm worried that this may trigger other warnings. I'll post a
separate message with an alternative fix proposal, and we can choose
which one looks nicer.

-- 
Eric Blake, Principal Software Engineer
Red Hat, Inc.           +1-919-301-3226
Virtualization:  qemu.org | libvirt.org

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20190328/247d9184/attachment-0001.sig>


More information about the libvir-list mailing list