* term.c (vfatal): Remove stray call to va_end.

It's not needed and the C Standard doesn't allow it here anyway.
This commit is contained in:
Paul Eggert 2011-05-04 00:20:46 -07:00
parent c378da0b47
commit aab2b9b5ab
2 changed files with 3 additions and 1 deletions

View file

@ -1,5 +1,8 @@
2011-05-04 Paul Eggert <eggert@cs.ucla.edu>
* 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)

View file

@ -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);
}