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