diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 4 | ||||
| -rw-r--r-- | src/minibuf.c | 6 |
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 @@ | |||
| 1 | 2010-06-08 Andreas Schwab <schwab@linux-m68k.org> | ||
| 2 | |||
| 3 | * minibuf.c (Fall_completions): Add more checks. | ||
| 4 | |||
| 1 | 2010-06-08 Juanma Barranquero <lekktu@gmail.com> | 5 | 2010-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; |