From 58d0d111af5580051b4d9a5cbaef4d7b96fdcfa8 Mon Sep 17 00:00:00 2001 From: Matthew Barnes Date: Mon, 15 Mar 2010 10:38:59 -0400 Subject: Prevent future bugs like #612792. Add G_GNUC_NULL_TERMINATED to EAlert functions with variable-length parameter lists and drop the unnecessary "arg0" parameter so the function attribute works correctly. --- plugins/backup-restore/backup-restore.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'plugins/backup-restore') diff --git a/plugins/backup-restore/backup-restore.c b/plugins/backup-restore/backup-restore.c index 80d0b76fcb..5286605f66 100644 --- a/plugins/backup-restore/backup-restore.c +++ b/plugins/backup-restore/backup-restore.c @@ -95,7 +95,7 @@ sanity_check (const gchar *filename) } static guint32 -dialog_prompt_user(GtkWindow *parent, const gchar *string, const gchar *tag, const gchar *arg0, ...) +dialog_prompt_user(GtkWindow *parent, const gchar *string, const gchar *tag, ...) { GtkWidget *mbox, *check = NULL; va_list ap; @@ -103,8 +103,8 @@ dialog_prompt_user(GtkWindow *parent, const gchar *string, const gchar *tag, con guint32 mask = 0; EAlert *alert = NULL; - va_start(ap, arg0); - alert = e_alert_new_valist(tag, arg0, ap); + va_start(ap, tag); + alert = e_alert_new_valist(tag, ap); va_end(ap); mbox = e_alert_dialog_new (parent, alert); -- cgit