projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2db8a32
)
Fix assertions in nth_minibuffer
author
Eli Zaretskii
<eliz@gnu.org>
Tue, 11 May 2021 13:37:37 +0000
(16:37 +0300)
committer
Eli Zaretskii
<eliz@gnu.org>
Tue, 11 May 2021 13:37:37 +0000
(16:37 +0300)
* src/minibuf.c (nth_minibuffer): Avoid assertion violation when
DEPTHth minibuffer doesn't exist. (Bug#48337)
src/minibuf.c
patch
|
blob
|
history
diff --git
a/src/minibuf.c
b/src/minibuf.c
index 167aece973a881c522b7bc0d00d7f70bc7f6e82c..52d1275451b6be73ac60d7e906145c4e69b97606 100644
(file)
--- a/
src/minibuf.c
+++ b/
src/minibuf.c
@@
-969,6
+969,8
@@
static Lisp_Object
nth_minibuffer (EMACS_INT depth)
{
Lisp_Object tail = Fnthcdr (make_fixnum (depth), Vminibuffer_list);
+ if (NILP (tail))
+ return Qnil;
return XCAR (tail);
}