diff options
author | Andreas Schwab <schwab@linux-m68k.org> | 2010-06-08 21:42:10 +0200 |
---|---|---|
committer | Andreas Schwab <schwab@linux-m68k.org> | 2010-06-08 21:42:10 +0200 |
commit | 373bf2b76c9ee3ddefa55aae26134ddadf9cf544 (patch) | |
tree | 4cfadd0d231019743f50f1e392088035c429f26d /src | |
parent | 657d4c0be3b677dda02f7d7e895ddb259b5de82b (diff) | |
download | emacs-373bf2b76c9ee3ddefa55aae26134ddadf9cf544.tar.gz |
* minibuf.c (Fall_completions): Add more checks.
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. */) tail = collection; if (type == 2) { + collection = check_obarray (collection); obsize = XVECTOR (collection)->size; - if (obsize == 0) - return Qnil; bucket = XVECTOR (collection)->contents[index]; } @@ -1612,8 +1611,10 @@ with a space are ignored unless STRING itself starts with a space. */) } else if (type == 2) { - if (SYMBOLP (bucket)) + if (!EQ (bucket, zero)) { + if (!SYMBOLP (bucket)) + error ("Bad data in guts of obarray"); elt = bucket; eltstring = elt; if (XSYMBOL (bucket)->next) |