diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/minibuf.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/minibuf.c b/src/minibuf.c index 54b0b1510ce..539a953f7ee 100644 --- a/src/minibuf.c +++ b/src/minibuf.c | |||
| @@ -1589,9 +1589,8 @@ with a space are ignored unless STRING itself starts with a space. */) | |||
| 1589 | tail = collection; | 1589 | tail = collection; |
| 1590 | if (type == 2) | 1590 | if (type == 2) |
| 1591 | { | 1591 | { |
| 1592 | collection = check_obarray (collection); | ||
| 1592 | obsize = XVECTOR (collection)->size; | 1593 | obsize = XVECTOR (collection)->size; |
| 1593 | if (obsize == 0) | ||
| 1594 | return Qnil; | ||
| 1595 | bucket = XVECTOR (collection)->contents[index]; | 1594 | bucket = XVECTOR (collection)->contents[index]; |
| 1596 | } | 1595 | } |
| 1597 | 1596 | ||
| @@ -1612,8 +1611,10 @@ with a space are ignored unless STRING itself starts with a space. */) | |||
| 1612 | } | 1611 | } |
| 1613 | else if (type == 2) | 1612 | else if (type == 2) |
| 1614 | { | 1613 | { |
| 1615 | if (SYMBOLP (bucket)) | 1614 | if (!EQ (bucket, zero)) |
| 1616 | { | 1615 | { |
| 1616 | if (!SYMBOLP (bucket)) | ||
| 1617 | error ("Bad data in guts of obarray"); | ||
| 1617 | elt = bucket; | 1618 | elt = bucket; |
| 1618 | eltstring = elt; | 1619 | eltstring = elt; |
| 1619 | if (XSYMBOL (bucket)->next) | 1620 | if (XSYMBOL (bucket)->next) |