# HG changeset patch # User Sadrul Habib Chowdhury # Date 1254950230 0 # Node ID 650ab9eb4b21ec00c4d5070d6c058327c6c9717f # Parent 89644e8d43238df1c6d5bf13b077b9861e796fc6 Add missing null sentinels, and help the compiler catch such errors. diff -r 89644e8d4323 -r 650ab9eb4b21 finch/gntblist.c --- a/finch/gntblist.c Wed Oct 07 20:23:16 2009 +0000 +++ b/finch/gntblist.c Wed Oct 07 21:17:10 2009 +0000 @@ -1940,7 +1940,7 @@ } else if (!gnt_tree_is_searching(GNT_TREE(ggblist->tree))) { if (strcmp(text, "t") == 0) { finch_blist_toggle_tag_buddy(gnt_tree_get_selection_data(GNT_TREE(ggblist->tree))); - gnt_bindable_perform_action_named(GNT_BINDABLE(ggblist->tree), "move-down"); + gnt_bindable_perform_action_named(GNT_BINDABLE(ggblist->tree), "move-down", NULL); } else if (strcmp(text, "a") == 0) { finch_blist_place_tagged(gnt_tree_get_selection_data(GNT_TREE(ggblist->tree))); } else diff -r 89644e8d4323 -r 650ab9eb4b21 finch/libgnt/gntbindable.h --- a/finch/libgnt/gntbindable.h Wed Oct 07 20:23:16 2009 +0000 +++ b/finch/libgnt/gntbindable.h Wed Oct 07 21:17:10 2009 +0000 @@ -166,7 +166,7 @@ * * @return @c TRUE if the action was performed successfully, @c FALSE otherwise. */ -gboolean gnt_bindable_perform_action_named(GntBindable *bindable, const char *name, ...); +gboolean gnt_bindable_perform_action_named(GntBindable *bindable, const char *name, ...) G_GNUC_NULL_TERMINATED; /** * Returns a GntTree populated with "key" -> "binding" for the widget. diff -r 89644e8d4323 -r 650ab9eb4b21 finch/libgnt/gntentry.c --- a/finch/libgnt/gntentry.c Wed Oct 07 20:23:16 2009 +0000 +++ b/finch/libgnt/gntentry.c Wed Oct 07 21:17:10 2009 +0000 @@ -495,7 +495,7 @@ { GntEntry *entry = GNT_ENTRY(bind); if (entry->ddown) { - gnt_bindable_perform_action_named(GNT_BINDABLE(entry->ddown), "move-down"); + gnt_bindable_perform_action_named(GNT_BINDABLE(entry->ddown), "move-down", NULL); return TRUE; } return show_suggest_dropdown(entry);