aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/fns.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/fns.c b/src/fns.c
index a22bad7dea0..b93ebb65234 100644
--- a/src/fns.c
+++ b/src/fns.c
@@ -462,9 +462,10 @@ static Lisp_Object
462copy_sub_char_table (arg) 462copy_sub_char_table (arg)
463 Lisp_Object arg; 463 Lisp_Object arg;
464{ 464{
465 Lisp_Object copy = make_sub_char_table (XCHAR_TABLE (arg)->defalt); 465 Lisp_Object copy = make_sub_char_table (Qnil);
466 int i; 466 int i;
467 467
468 XCHAR_TABLE (copy)->defalt = XCHAR_TABLE (arg)->defalt;
468 /* Copy all the contents. */ 469 /* Copy all the contents. */
469 bcopy (XCHAR_TABLE (arg)->contents, XCHAR_TABLE (copy)->contents, 470 bcopy (XCHAR_TABLE (arg)->contents, XCHAR_TABLE (copy)->contents,
470 SUB_CHAR_TABLE_ORDINARY_SLOTS * sizeof (Lisp_Object)); 471 SUB_CHAR_TABLE_ORDINARY_SLOTS * sizeof (Lisp_Object));