* 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:
parent
c378da0b47
commit
aab2b9b5ab
2 changed files with 3 additions and 1 deletions
|
@ -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)
|
||||
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue