Mercurial > pidgin
changeset 32677:a87cc77c8e6f
Silence a warning.
author | Elliott Sales de Andrade <qulogic@pidgin.im> |
---|---|
date | Sat, 08 Oct 2011 21:57:46 +0000 |
parents | a34fc59e5ee8 |
children | 1c7c89f41081 |
files | pidgin/gtkprefs.c |
diffstat | 1 files changed, 4 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/pidgin/gtkprefs.c Sat Oct 08 21:54:32 2011 +0000 +++ b/pidgin/gtkprefs.c Sat Oct 08 21:57:46 2011 +0000 @@ -246,7 +246,7 @@ int int_value = 0; const char *str_value = NULL; gboolean bool_value = FALSE; - GtkListStore *store; + GtkListStore *store = NULL; GtkTreeIter iter; GtkTreeIter active; GtkCellRenderer *renderer; @@ -262,6 +262,9 @@ } else if (type == PURPLE_PREF_BOOLEAN) { store = gtk_list_store_new(PREF_DROPDOWN_COUNT, G_TYPE_STRING, G_TYPE_BOOLEAN); stored_bool = purple_prefs_get_bool(key); + } else { + g_warn_if_reached(); + return NULL; } dropdown = gtk_combo_box_new_with_model(GTK_TREE_MODEL(store));