Re: [PATCH v2 03/31] conf: Use VIR_AUTO* in virDomainCapsCPUModelsAdd

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

 



On Tue, Oct 15, 2019 at 05:34:39PM +0200, Jiri Denemark wrote:
Signed-off-by: Jiri Denemark <jdenemar@xxxxxxxxxx>
Reviewed-by: Ján Tomko <jtomko@xxxxxxxxxx>
---

Notes:
   Version 2:
   - no change

src/conf/domain_capabilities.c | 15 +++++----------
1 file changed, 5 insertions(+), 10 deletions(-)


Reviewed-by: Ján Tomko <jtomko@xxxxxxxxxx>
with the following squashed in:

diff --git a/src/conf/domain_capabilities.c b/src/conf/domain_capabilities.c
index 3224ec3f52..a143386d0b 100644
--- a/src/conf/domain_capabilities.c
+++ b/src/conf/domain_capabilities.c
@@ -246,7 +246,7 @@ virDomainCapsCPUModelsAdd(virDomainCapsCPUModelsPtr cpuModels,
                          virDomainCapsCPUUsable usable,
                          char **blockers)
{
-    VIR_AUTOFREE(char *) nameCopy = NULL;
+    g_autofree char *nameCopy = NULL;
    VIR_AUTOSTRINGLIST blockersCopy = NULL;

    if (VIR_STRNDUP(nameCopy, name, nameLen) < 0)

Attachment: signature.asc
Description: PGP signature

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

  Powered by Linux