summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc-André Lureau <marcandre.lureau@gmail.com>2014-06-11 17:21:12 +0200
committerMarc-André Lureau <marcandre.lureau@gmail.com>2014-06-12 12:01:38 +0200
commit48d8fa788dbfb90daf81d1af24122ad7d13d8cb6 (patch)
tree0e7e1112e056f5d920487a6e6fbc2b5f6b20cdd0
parentb707b4524ff12ae1c2c3deff0e8c3f0d098f0503 (diff)
util: fix glib_check_version() condition
glib_check_version() returns NULL if version is higher or equal.
-rw-r--r--src/virt-viewer-util.c2
1 files changed, 1 insertions, 1 deletions
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;