aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAndreas Schwab2010-06-08 19:56:21 +0200
committerAndreas Schwab2010-06-08 19:56:21 +0200
commit657d4c0be3b677dda02f7d7e895ddb259b5de82b (patch)
tree684a4d1d7bb3cb4475dc75400e6fe9f0072650a9 /src
parent9b27fd9f75698a1b12dd071c77c970170392a704 (diff)
downloademacs-657d4c0be3b677dda02f7d7e895ddb259b5de82b.tar.gz
emacs-657d4c0be3b677dda02f7d7e895ddb259b5de82b.zip
* minibuf.c (Fall_completions): Add more checks.
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog4
-rw-r--r--src/minibuf.c6
2 files changed, 8 insertions, 2 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 5dc2c25a984..9ba428053b9 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,7 @@
12010-06-08 Andreas Schwab <schwab@linux-m68k.org>
2
3 * minibuf.c (Fall_completions): Add more checks.
4
12010-06-08 Juanma Barranquero <lekktu@gmail.com> 52010-06-08 Juanma Barranquero <lekktu@gmail.com>
2 6
3 * minibuf.c (Fall_completions): Check COLLECTION's size (bug#6378). 7 * minibuf.c (Fall_completions): Check COLLECTION's size (bug#6378).
diff --git a/src/minibuf.c b/src/minibuf.c
index 0a57d2a82eb..54b0b1510ce 100644
--- a/src/minibuf.c
+++ b/src/minibuf.c
@@ -1590,7 +1590,9 @@ with a space are ignored unless STRING itself starts with a space. */)
1590 if (type == 2) 1590 if (type == 2)
1591 { 1591 {
1592 obsize = XVECTOR (collection)->size; 1592 obsize = XVECTOR (collection)->size;
1593 bucket = obsize ? XVECTOR (collection)->contents[index] : zero; 1593 if (obsize == 0)
1594 return Qnil;
1595 bucket = XVECTOR (collection)->contents[index];
1594 } 1596 }
1595 1597
1596 while (1) 1598 while (1)
@@ -1610,7 +1612,7 @@ with a space are ignored unless STRING itself starts with a space. */)
1610 } 1612 }
1611 else if (type == 2) 1613 else if (type == 2)
1612 { 1614 {
1613 if (!EQ (bucket, zero)) 1615 if (SYMBOLP (bucket))
1614 { 1616 {
1615 elt = bucket; 1617 elt = bucket;
1616 eltstring = elt; 1618 eltstring = elt;