[dbus PATCH] GetDomainCapabilities: input args should be NULL when passing empty string

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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



[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux