(map_obarray): Don't crash if something strange is in the obarray.
authorRichard M. Stallman <rms@gnu.org>
Mon, 28 Jul 1997 15:09:31 +0000 (15:09 +0000)
committerRichard M. Stallman <rms@gnu.org>
Mon, 28 Jul 1997 15:09:31 +0000 (15:09 +0000)
src/lread.c

index 7f718dc..60583ba 100644 (file)
@@ -2248,7 +2248,7 @@ map_obarray (obarray, fn, arg)
   for (i = XVECTOR (obarray)->size - 1; i >= 0; i--)
     {
       tail = XVECTOR (obarray)->contents[i];
-      if (XFASTINT (tail) != 0)
+      if (SYMBOLP (tail))
        while (1)
          {
            (*fn) (tail, arg);