diff --git a/src/qemu/qemu_driver.c b/src/qemu/qemu_driver.c index 32b05229fc..b19f4976f6 100644 --- a/src/qemu/qemu_driver.c +++ b/src/qemu/qemu_driver.c @@ -1016,6 +1016,7 @@ static virDrvOpenStatus qemuOpen(virConnectPtr conn, goto cleanup; } + cfg = virQEMUDriverGetConfig(qemu_driver); if (conn->uri->path == NULL) { virReportError(VIR_ERR_INTERNAL_ERROR, _("no QEMU URI path given, try %s"), @@ -1023,7 +1024,6 @@ static virDrvOpenStatus qemuOpen(virConnectPtr conn, goto cleanup; } - cfg = virQEMUDriverGetConfig(qemu_driver); if (cfg->privileged) { if (STRNEQ(conn->uri->path, "/system") && STRNEQ(conn->uri->path, "/session")) {