util: fix glib_check_version() condition

glib_check_version() returns NULL if version is higher or equal.
This commit is contained in:
Marc-André Lureau 2014-06-11 17:21:12 +02:00
parent b707b4524f
commit 48d8fa788d

View File

@ -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;