[glib] Fix thinko



commit d8dca11733e483670f47fa5c4d8f4a5cb97f6b5b
Author: Christian Persch <chpe gnome org>
Date:   Tue Jun 8 19:40:58 2010 +0200

    Fix thinko
    
    When replacing strcmp() with g_variant_is_of_type(), remove the "== 0"
    part! Found by Colin Walters.

 gio/gapplication.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gio/gapplication.c b/gio/gapplication.c
index 029bf29..7ba5f43 100644
--- a/gio/gapplication.c
+++ b/gio/gapplication.c
@@ -407,7 +407,7 @@ g_application_register_with_data (GApplication  *application,
   g_return_if_fail (application->priv->appid != NULL);
   g_return_if_fail (application->priv->is_remote);
   g_return_if_fail (platform_data == NULL
-                    || g_variant_is_of_type (platform_data, G_VARIANT_TYPE ("a{sv}")) == 0);
+                    || g_variant_is_of_type (platform_data, G_VARIANT_TYPE ("a{sv}")));
 
   if (!_g_application_platform_acquire_single_instance (application, NULL))
     {



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