Message ID | 56EB2803.4020908@redhat.com |
---|---|
State | New |
Headers | show |
diff --git a/src/qemu/qemu_capabilities.c b/src/qemu/qemu_capabilities.c index af35f89..7f91730 100644 --- a/src/qemu/qemu_capabilities.c +++ b/src/qemu/qemu_capabilities.c @@ -3089,9 +3089,8 @@ virQEMUCapsInitCached(virQEMUCapsPtr qemuCaps, const char *cacheDir) if (virQEMUCapsLoadCache(qemuCaps, capsfile, &qemuctime, &selfctime, &selfvers) < 0) { - const char *err = virGetLastErrorMessage(); VIR_WARN("Failed to load cached caps from '%s' for '%s': %s", - capsfile, qemuCaps->binary, err); + capsfile, qemuCaps->binary, virGetLastErrorMessage()); virResetLastError(); ret = 0;