Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
aab2b9b5
Commit
aab2b9b5
authored
May 04, 2011
by
Paul Eggert
Browse files
* 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
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
1 deletion
+3
-1
src/ChangeLog
src/ChangeLog
+3
-0
src/term.c
src/term.c
+0
-1
No files found.
src/ChangeLog
View file @
aab2b9b5
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)
...
...
src/term.c
View file @
aab2b9b5
...
...
@@ -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
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment