Mercurial > pidgin.yaz
changeset 28704:650ab9eb4b21
Add missing null sentinels, and help the compiler catch such errors.
author | Sadrul Habib Chowdhury <imadil@gmail.com> |
---|---|
date | Wed, 07 Oct 2009 21:17:10 +0000 |
parents | 89644e8d4323 |
children | 8981df90b64c |
files | finch/gntblist.c finch/libgnt/gntbindable.h finch/libgnt/gntentry.c |
diffstat | 3 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- 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
--- 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.
--- 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);