qulogic/libgnt

db387fd21d1d
Parents be3dd2e2fa38
Children 5bf8e98a5fa8
Add missing null sentinels, and help the compiler catch such errors.
--- a/gntbindable.h Wed Oct 07 20:23:16 2009 +0000
+++ b/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/gntentry.c Wed Oct 07 20:23:16 2009 +0000
+++ b/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);