[glib/wip/menus-rebase2: 63/64] Fix a spurious warning
- From: Colin Walters <walters src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib/wip/menus-rebase2: 63/64] Fix a spurious warning
- Date: Fri, 18 Nov 2011 16:30:43 +0000 (UTC)
commit 6bdb96e1e94169120ab4ac95a407fcc109450b94
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]