changeset 32559:bc60bd171784

(keymap_memberp): Ensure that nil is not a member.
author Stefan Monnier <monnier@iro.umontreal.ca>
date Mon, 16 Oct 2000 21:57:11 +0000
parents 7282acad9a45
children aaa33e5bc33b
files src/keymap.c
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/keymap.c	Mon Oct 16 21:24:15 2000 +0000
+++ b/src/keymap.c	Mon Oct 16 21:57:11 2000 +0000
@@ -311,6 +311,7 @@
 keymap_memberp (map, maps)
      Lisp_Object map, maps;
 {
+  if (NILP (map)) return 0;
   while (KEYMAPP (maps) && !EQ (map, maps))
     maps = Fkeymap_parent (maps);
   return (EQ (map, maps));