]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
util: Fix syntax-check
authorAndrea Bolognani <abologna@redhat.com>
Wed, 7 Feb 2018 13:39:18 +0000 (14:39 +0100)
committerCole Robinson <crobinso@redhat.com>
Tue, 13 Feb 2018 19:14:33 +0000 (14:14 -0500)
Broken by 759b4d1b0fe5f4d84d98b99153dfa7ac289dd167.

Signed-off-by: Andrea Bolognani <abologna@redhat.com>
(cherry picked from commit 6ce3acc129bfdbe7fd02bcb8bbe8af6d13903684)

src/util/virlog.c

index 05e0e199eee6dbeff7672d8442b36c4f773d9ead..056b53cda2efb0a271060c830ff4676d484c04c2 100644 (file)
@@ -478,9 +478,8 @@ virLogHostnameString(char **rawmsg,
     if (!virLogHostname)
         return -1;
 
-    if (virAsprintfQuiet(&hoststr, "hostname: %s", virLogHostname) < 0) {
+    if (virAsprintfQuiet(&hoststr, "hostname: %s", virLogHostname) < 0)
         return -1;
-    }
 
     if (virLogFormatString(msg, 0, NULL, VIR_LOG_INFO, hoststr) < 0) {
         VIR_FREE(hoststr);