diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2010-03-15 22:38:59 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2010-03-15 22:38:59 +0800 |
commit | 58d0d111af5580051b4d9a5cbaef4d7b96fdcfa8 (patch) | |
tree | b6d3a47f051d5d81fcc2c7219ff60a5a77711f77 /composer/e-msg-composer.c | |
parent | ea52ab83fe121796a12a090ce81ba114d2c368ed (diff) | |
download | gsoc2013-evolution-58d0d111af5580051b4d9a5cbaef4d7b96fdcfa8.tar.gz gsoc2013-evolution-58d0d111af5580051b4d9a5cbaef4d7b96fdcfa8.tar.zst gsoc2013-evolution-58d0d111af5580051b4d9a5cbaef4d7b96fdcfa8.zip |
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.
Diffstat (limited to 'composer/e-msg-composer.c')
-rw-r--r-- | composer/e-msg-composer.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/composer/e-msg-composer.c b/composer/e-msg-composer.c index 86275b4755..aa926b0aeb 100644 --- a/composer/e-msg-composer.c +++ b/composer/e-msg-composer.c @@ -161,7 +161,7 @@ emcu_part_to_html (CamelMimePart *part, gssize *len, EMFormat *source) /* copy of em_utils_prompt_user from mailer */ static gboolean -emcu_prompt_user (GtkWindow *parent, const gchar *promptkey, const gchar *tag, const gchar *arg0, ...) +emcu_prompt_user (GtkWindow *parent, const gchar *promptkey, const gchar *tag, ...) { GtkDialog *mbox; GtkWidget *check = NULL; @@ -176,8 +176,8 @@ emcu_prompt_user (GtkWindow *parent, const gchar *promptkey, const gchar *tag, c return TRUE; } - 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 = (GtkDialog*) e_alert_dialog_new (parent, alert); |