Signed-off-by: Katerina Koukiou <kkoukiou@xxxxxxxxxx> --- src/connect.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/connect.c b/src/connect.c index 48db724..5e577e4 100644 --- a/src/connect.c +++ b/src/connect.c @@ -602,6 +602,14 @@ virtDBusConnectGetDomainCapabilities(GVariant *inArgs, g_variant_get(inArgs, "(&s&s&s&su)", &emulatorbin, &arch, &machine, &virttype, &flags); + if (g_str_equal(emulatorbin, "")) + emulatorbin = NULL; + if (g_str_equal(arch, "")) + arch = NULL; + if (g_str_equal(machine, "")) + machine = NULL; + if (g_str_equal(virttype, "")) + virttype = NULL; if (!virtDBusConnectOpen(connect, error)) return; -- 2.15.0 -- libvir-list mailing list libvir-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/libvir-list