summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorStefan Monnier <monnier@iro.umontreal.ca>2004-10-13 18:40:03 +0000
committerStefan Monnier <monnier@iro.umontreal.ca>2004-10-13 18:40:03 +0000
commit91244343b5a5d459656f9eb7f7619a9811016f0c (patch)
treefd74ccb0c68ad28d152e9ad42647dbdc17851aa4 /src
parent9238467da9d261930ccbab57b33c9c52d86a47ba (diff)
downloademacs-91244343b5a5d459656f9eb7f7619a9811016f0c.tar.gz
(map_char_table): Add missing gcpros.
Diffstat (limited to 'src')
-rw-r--r--src/fns.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/fns.c b/src/fns.c
index 06d04781789..814babae7d8 100644
--- a/src/fns.c
+++ b/src/fns.c
@@ -2705,6 +2705,9 @@ map_char_table (c_function, function, table, subtable, arg, depth, indices)
int depth;
{
int i, to;
+ struct gcpro gcpro1, gcpro2, gcpro3, gcpro4;
+
+ GCPRO4 (arg, table, subtable, function);
if (depth == 0)
{
@@ -2724,7 +2727,10 @@ map_char_table (c_function, function, table, subtable, arg, depth, indices)
#if 0 /* If the char table has entries for higher characters,
we should report them. */
if (NILP (current_buffer->enable_multibyte_characters))
- return;
+ {
+ UNGCPRO;
+ return;
+ }
#endif
to = CHAR_TABLE_ORDINARY_SLOTS;
}
@@ -2777,6 +2783,7 @@ map_char_table (c_function, function, table, subtable, arg, depth, indices)
call2 (function, make_number (c), elt);
}
}
+ UNGCPRO;
}
static void void_call2 P_ ((Lisp_Object a, Lisp_Object b, Lisp_Object c));