* minibuf.c (Fall_completions): Add more checks.
authorAndreas Schwab <schwab@linux-m68k.org>
Tue, 8 Jun 2010 19:42:10 +0000 (21:42 +0200)
committerAndreas Schwab <schwab@linux-m68k.org>
Tue, 8 Jun 2010 19:42:10 +0000 (21:42 +0200)
src/minibuf.c

index 54b0b15..539a953 100644 (file)
@@ -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)