1
0
mirror of https://gitlab.com/libvirt/libvirt.git synced 2025-01-05 13:17:51 +03:00

util: Fix syntax-check

Broken by 759b4d1b0f.

Signed-off-by: Andrea Bolognani <abologna@redhat.com>
(cherry picked from commit 6ce3acc129)
This commit is contained in:
Andrea Bolognani 2018-02-07 14:39:18 +01:00 committed by Cole Robinson
parent 3aadeae970
commit abb70bb3d4

View 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);