Commit aab2b9b5 authored by Paul Eggert's avatar 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.
parent c378da0b
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)
......
......@@ -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);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment