From: Paul Eggert Date: Wed, 4 May 2011 07:20:46 +0000 (-0700) Subject: * term.c (vfatal): Remove stray call to va_end. X-Git-Tag: emacs-pretest-24.0.90~104^2~275^2~92^2~6 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=aab2b9b5abaa4862b2814929c31035e7920f5e21;p=emacs.git * term.c (vfatal): Remove stray call to va_end. It's not needed and the C Standard doesn't allow it here anyway. --- diff --git a/src/ChangeLog b/src/ChangeLog index a1aa19e6f2e..c0d81fc1248 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,5 +1,8 @@ 2011-05-04 Paul Eggert + * term.c (vfatal): Remove stray call to va_end. + It's not needed and the C Standard doesn't allow it here anyway. + Use C99's va_copy to avoid undefined behavior on x86-64 GNU/Linux. * eval.c (verror): doprnt a copy of ap, not the original. (Bug#8545) diff --git a/src/term.c b/src/term.c index 9d19b256308..c68228cc51a 100644 --- a/src/term.c +++ b/src/term.c @@ -3618,7 +3618,6 @@ vfatal (const char *str, va_list ap) vfprintf (stderr, str, ap); if (!(strlen (str) > 0 && str[strlen (str) - 1] == '\n')) fprintf (stderr, "\n"); - va_end (ap); fflush (stderr); exit (1); }