render / rpms / libvirt

Forked from rpms/libvirt 9 months ago
Clone
c1c534
From 27e59af45b7e283b94617330e3327eff4bd91bdb Mon Sep 17 00:00:00 2001
c1c534
Message-Id: <27e59af45b7e283b94617330e3327eff4bd91bdb@dist-git>
c1c534
From: Jiri Denemark <jdenemar@redhat.com>
c1c534
Date: Mon, 22 Jan 2018 14:51:11 +0100
c1c534
Subject: [PATCH] qemu: Don't initialize struct utsname
c1c534
c1c534
It breaks the build and it is not really useful for anything.
c1c534
c1c534
Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
c1c534
(cherry picked from commit ba9ea2ad7dd15d9a2e9c7a5b9a8a3e7066351015)
c1c534
c1c534
https://bugzilla.redhat.com/show_bug.cgi?id=1525182
c1c534
c1c534
Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
c1c534
---
c1c534
 src/qemu/qemu_capabilities.c | 2 +-
c1c534
 1 file changed, 1 insertion(+), 1 deletion(-)
c1c534
c1c534
diff --git a/src/qemu/qemu_capabilities.c b/src/qemu/qemu_capabilities.c
c1c534
index af4875f82e..bd80edc978 100644
c1c534
--- a/src/qemu/qemu_capabilities.c
c1c534
+++ b/src/qemu/qemu_capabilities.c
c1c534
@@ -5416,7 +5416,7 @@ virQEMUCapsCacheNew(const char *libDir,
c1c534
     char *capsCacheDir = NULL;
c1c534
     virFileCachePtr cache = NULL;
c1c534
     virQEMUCapsCachePrivPtr priv = NULL;
c1c534
-    struct utsname uts = { 0 };
c1c534
+    struct utsname uts;
c1c534
 
c1c534
     if (virAsprintf(&capsCacheDir, "%s/capabilities", cacheDir) < 0)
c1c534
         goto error;
c1c534
-- 
c1c534
2.16.1
c1c534