]> 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)
committerAndrea Bolognani <abologna@redhat.com>
Wed, 7 Feb 2018 13:39:18 +0000 (14:39 +0100)
Broken by 759b4d1b0fe5f4d84d98b99153dfa7ac289dd167.

Signed-off-by: Andrea Bolognani <abologna@redhat.com>
src/util/virlog.c

index 9105337ce6aa35c5214b003bc07f393668916d47..8f1e4800dd43087cb9afaca022465742a4113dc1 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);