* term.c (vfatal): Remove stray call to va_end.
authorPaul Eggert <eggert@cs.ucla.edu>
Wed, 4 May 2011 07:20:46 +0000 (00:20 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Wed, 4 May 2011 07:20:46 +0000 (00:20 -0700)
It's not needed and the C Standard doesn't allow it here anyway.

src/ChangeLog
src/term.c

index a1aa19e..c0d81fc 100644 (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)
 
index 9d19b25..c68228c 100644 (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);
 }