[glib/wip/menus] Fix a spurious warning



commit ff02885179c021db5d3a7c07a98f353fb2f1e1d5
Author: Matthias Clasen <mclasen redhat com>
Date:   Thu Nov 17 19:43:24 2011 -0500

    Fix a spurious warning

 gio/gmenumarkup.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gio/gmenumarkup.c b/gio/gmenumarkup.c
index cc1b038..4fc09b8 100644
--- a/gio/gmenumarkup.c
+++ b/gio/gmenumarkup.c
@@ -315,7 +315,7 @@ g_menu_markup_end_element (GMarkupParseContext  *context,
       if ((value = g_variant_parse (state->type, text, NULL, NULL, error)))
         {
           /* Deal with translatable string attributes */
-          if (state->domain && state->translatable &&
+          if (state->domain && state->translatable && state->type &&
               g_variant_type_equal (state->type, G_VARIANT_TYPE_STRING))
             {
               const gchar *msgid;



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