diff src/events.c @ 153:25f70ba0133c r20-3b3

Import from CVS: tag r20-3b3
author cvs
date Mon, 13 Aug 2007 09:38:25 +0200
parents 538048ae2ab8
children 6b37e6ddd302
line wrap: on
line diff
--- a/src/events.c	Mon Aug 13 09:37:21 2007 +0200
+++ b/src/events.c	Mon Aug 13 09:38:25 2007 +0200
@@ -421,9 +421,12 @@
     for (i = 0; i < XVECTOR (Vthis_command_keys)->size; i++)
       if (EQ (event, vector_data (XVECTOR (Vthis_command_keys)) [i]))
 	abort ();
-    for (i = 0; i < XVECTOR (Vrecent_keys_ring)->size; i++)
-      if (EQ (event, vector_data (XVECTOR (Vrecent_keys_ring)) [i]))
-	abort ();
+    if (!NILP (Vrecent_keys_ring))
+      {
+	for (i = 0; i < XVECTOR (Vrecent_keys_ring)->size; i++)
+	  if (EQ (event, vector_data (XVECTOR (Vrecent_keys_ring)) [i]))
+	    abort ();
+      }
   }
 #endif /* 0 */