summaryrefslogtreecommitdiff
path: root/ui
diff options
context:
space:
mode:
Diffstat (limited to 'ui')
-rw-r--r--ui/gtk/prefs_dlg.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/ui/gtk/prefs_dlg.c b/ui/gtk/prefs_dlg.c
index 980cadf70f..bf164cfcd2 100644
--- a/ui/gtk/prefs_dlg.c
+++ b/ui/gtk/prefs_dlg.c
@@ -1803,7 +1803,7 @@ void
properties_cb(GtkWidget *w, gpointer dummy)
{
header_field_info *hfinfo;
- const gchar *title;
+ const gchar *title = NULL;
struct properties_data p;
int page_num;
GtkWidget *sw;
@@ -1835,13 +1835,10 @@ properties_cb(GtkWidget *w, gpointer dummy)
} else {
abbrev = proto_registrar_get_abbrev(hfinfo->parent);
}
+ title = prefs_get_title_by_name(abbrev);
break;
}
}
-
- title = prefs_get_title_by_name(abbrev);
- } else {
- title = NULL;
}
} else {
/* Find the title for the protocol for the selected field. */