aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPaul Eggert2011-05-04 00:20:46 -0700
committerPaul Eggert2011-05-04 00:20:46 -0700
commitaab2b9b5abaa4862b2814929c31035e7920f5e21 (patch)
treecabff32181b1853df25a1ba885d35a557f315979 /src
parentc378da0b47eb8c26fc8da4d89e128ee3c73537de (diff)
downloademacs-aab2b9b5abaa4862b2814929c31035e7920f5e21.tar.gz
emacs-aab2b9b5abaa4862b2814929c31035e7920f5e21.zip
* term.c (vfatal): Remove stray call to va_end.
It's not needed and the C Standard doesn't allow it here anyway.
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog3
-rw-r--r--src/term.c1
2 files changed, 3 insertions, 1 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index a1aa19e6f2e..c0d81fc1248 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,5 +1,8 @@
12011-05-04 Paul Eggert <eggert@cs.ucla.edu> 12011-05-04 Paul Eggert <eggert@cs.ucla.edu>
2 2
3 * term.c (vfatal): Remove stray call to va_end.
4 It's not needed and the C Standard doesn't allow it here anyway.
5
3 Use C99's va_copy to avoid undefined behavior on x86-64 GNU/Linux. 6 Use C99's va_copy to avoid undefined behavior on x86-64 GNU/Linux.
4 * eval.c (verror): doprnt a copy of ap, not the original. (Bug#8545) 7 * eval.c (verror): doprnt a copy of ap, not the original. (Bug#8545)
5 8
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)
3618 vfprintf (stderr, str, ap); 3618 vfprintf (stderr, str, ap);
3619 if (!(strlen (str) > 0 && str[strlen (str) - 1] == '\n')) 3619 if (!(strlen (str) > 0 && str[strlen (str) - 1] == '\n'))
3620 fprintf (stderr, "\n"); 3620 fprintf (stderr, "\n");
3621 va_end (ap);
3622 fflush (stderr); 3621 fflush (stderr);
3623 exit (1); 3622 exit (1);
3624} 3623}