* charset.c (Fmake_char_internal): CHAR_COMPONENTS_VALID_P takes a
[bpt/emacs.git] / src / charset.c
index c040134..52ba5f2 100644 (file)
@@ -961,8 +961,8 @@ DEFUN ("make-char-internal", Fmake_char_internal, Smake_char_internal, 1, 3, 0,
   if (c1 == 0
       ? c2 != 0
       : (c2 == 0
-        ? !CHAR_COMPONENTS_VALID_P (charset, c1, 0x20)
-        : !CHAR_COMPONENTS_VALID_P (charset, c1, c2)))
+        ? !CHAR_COMPONENTS_VALID_P (charset_id, c1, 0x20)
+        : !CHAR_COMPONENTS_VALID_P (charset_id, c1, c2)))
     error ("Invalid code points for charset ID %d: %d %d", charset_id, c1, c2);
 
   return make_number (MAKE_CHAR (charset_id, c1, c2));