projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2f08c85
)
Fix possible null pointer access
author
Gerd Möllmann
<gerd@gnu.org>
Sun, 18 Sep 2022 05:44:23 +0000
(07:44 +0200)
committer
Gerd Möllmann
<gerd@gnu.org>
Sun, 18 Sep 2022 05:44:23 +0000
(07:44 +0200)
* src/term.c (Ftty__output_buffer_size): Handle case of
decode_tty_terminal returning NULL.
src/term.c
patch
|
blob
|
history
diff --git
a/src/term.c
b/src/term.c
index 231324d002a13488d43c23517bcf6216b4ad063d..f8104e0304e368811cfa33608f5185718641ed4b 100644
(file)
--- a/
src/term.c
+++ b/
src/term.c
@@
-2433,7
+2433,9
@@
A value of zero means TTY uses the system's default value. */)
(Lisp_Object tty)
{
struct terminal *terminal = decode_tty_terminal (tty);
- return make_fixnum (terminal->display_info.tty->output_buffer_size);
+ if (terminal)
+ return make_fixnum (terminal->display_info.tty->output_buffer_size);
+ error ("Not a tty terminal");
}
\f