aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAndreas Schwab2010-06-08 21:42:10 +0200
committerAndreas Schwab2010-06-08 21:42:10 +0200
commit373bf2b76c9ee3ddefa55aae26134ddadf9cf544 (patch)
tree4cfadd0d231019743f50f1e392088035c429f26d /src
parent657d4c0be3b677dda02f7d7e895ddb259b5de82b (diff)
downloademacs-373bf2b76c9ee3ddefa55aae26134ddadf9cf544.tar.gz
emacs-373bf2b76c9ee3ddefa55aae26134ddadf9cf544.zip
* minibuf.c (Fall_completions): Add more checks.
Diffstat (limited to 'src')
-rw-r--r--src/minibuf.c7
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)