+2010-06-08 Andreas Schwab <schwab@linux-m68k.org>
+
+ * minibuf.c (Fall_completions): Add more checks.
+
2010-06-08 Juanma Barranquero <lekktu@gmail.com>
* minibuf.c (Fall_completions): Check COLLECTION's size (bug#6378).
if (type == 2)
{
obsize = XVECTOR (collection)->size;
- bucket = obsize ? XVECTOR (collection)->contents[index] : zero;
+ if (obsize == 0)
+ return Qnil;
+ bucket = XVECTOR (collection)->contents[index];
}
while (1)
}
else if (type == 2)
{
- if (!EQ (bucket, zero))
+ if (SYMBOLP (bucket))
{
elt = bucket;
eltstring = elt;