Re: [libvirt PATCH 4/6] Use g_strfeev instead of virStringFreeList

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

 



On Mon, Aug 03, 2020 at 12:25:32AM +0200, Ján Tomko wrote:
> Both accept a NULL value gracefully and virStringFreeList
> does not zero the pointer afterwards, so a straight replace
> is safe.

FWIW, if you use g_autoptr(GStrv) instead of char **, then you
can get auto-cleanup working where useful.


Regards,
Daniel
-- 
|: https://berrange.com      -o-    https://www.flickr.com/photos/dberrange :|
|: https://libvirt.org         -o-            https://fstop138.berrange.com :|
|: https://entangle-photo.org    -o-    https://www.instagram.com/dberrange :|




[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]

  Powered by Linux