aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy-gtk
diff options
context:
space:
mode:
authorXavier Claessens <xclaesse@src.gnome.org>2007-12-15 00:06:51 +0800
committerXavier Claessens <xclaesse@src.gnome.org>2007-12-15 00:06:51 +0800
commita34e8261566cd08928a7ba10c4293132687d615a (patch)
treeca9479309baf6c8177881f502fa6ef5bf8abfa01 /libempathy-gtk
parent8dd9e250d9aca56a02868170634ccd113a5af591 (diff)
downloadgsoc2013-empathy-a34e8261566cd08928a7ba10c4293132687d615a.tar
gsoc2013-empathy-a34e8261566cd08928a7ba10c4293132687d615a.tar.gz
gsoc2013-empathy-a34e8261566cd08928a7ba10c4293132687d615a.tar.bz2
gsoc2013-empathy-a34e8261566cd08928a7ba10c4293132687d615a.tar.lz
gsoc2013-empathy-a34e8261566cd08928a7ba10c4293132687d615a.tar.xz
gsoc2013-empathy-a34e8261566cd08928a7ba10c4293132687d615a.tar.zst
gsoc2013-empathy-a34e8261566cd08928a7ba10c4293132687d615a.zip
Fix build if assertions are disabled. Fixes bug #503609
svn path=/trunk/; revision=479
Diffstat (limited to 'libempathy-gtk')
-rw-r--r--libempathy-gtk/empathy-account-widget-generic.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/libempathy-gtk/empathy-account-widget-generic.c b/libempathy-gtk/empathy-account-widget-generic.c
index 3c7385f48..999b64499 100644
--- a/libempathy-gtk/empathy-account-widget-generic.c
+++ b/libempathy-gtk/empathy-account-widget-generic.c
@@ -131,7 +131,7 @@ static void
account_widget_generic_setup_foreach (McProtocolParam *param,
EmpathyAccountWidgetGeneric *settings)
{
- GtkWidget *widget;
+ GtkWidget *widget = NULL;
gchar *param_name_formatted;
param_name_formatted = account_widget_generic_format_param_name (param->name);
@@ -258,13 +258,14 @@ account_widget_generic_setup_foreach (McProtocolParam *param,
empathy_debug (DEBUG_DOMAIN,
"Unknown signature for param %s: %s\n",
param_name_formatted, param->signature);
- g_assert_not_reached ();
}
- g_free (param_name_formatted);
+ if (widget) {
+ g_object_set_data_full (G_OBJECT (widget), "param_name",
+ g_strdup (param->name), g_free);
+ }
- g_object_set_data_full (G_OBJECT (widget), "param_name",
- g_strdup (param->name), g_free);
+ g_free (param_name_formatted);
}
static void