[dbus PATCH 1/3] Fix virtDBusUtilEnumFromString g_str_equal use

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

 



Signed-off-by: Katerina Koukiou <kkoukiou@xxxxxxxxxx>
---
 src/util.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/util.c b/src/util.c
index 34ab83a..b21f2c5 100644
--- a/src/util.c
+++ b/src/util.c
@@ -146,7 +146,7 @@ virtDBusUtilEnumFromString(const gchar *const *types,
         return -1;
 
     for (i = 0; i < ntypes; i++)
-        if (g_str_equal(types[i], type) == 0)
+        if (g_str_equal(types[i], type))
             return i;
 
     return -1;
-- 
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