[virt-tools-list] [PATCH virt-viewer] util: fix glib_check_version() condition

Marc-André Lureau marcandre.lureau at gmail.com
Wed Jun 11 15:21:59 UTC 2014


glib_check_version() returns NULL if version is higher or equal.
---
 src/virt-viewer-util.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/virt-viewer-util.c b/src/virt-viewer-util.c
index c81c09a..6fdaa07 100644
--- a/src/virt-viewer-util.c
+++ b/src/virt-viewer-util.c
@@ -283,7 +283,7 @@ static void log_handler(const gchar *log_domain,
                         const gchar *message,
                         gpointer unused_data)
 {
-    if (!glib_check_version(2, 32, 0))
+    if (glib_check_version(2, 32, 0) != NULL)
         if (log_level >= G_LOG_LEVEL_DEBUG && !doDebug)
             return;
 
-- 
1.9.3




More information about the virt-tools-list mailing list