(Fchar_attribute_alist): Check the argument is a character; copy the
authortomo <tomo>
Fri, 12 Nov 1999 17:13:24 +0000 (17:13 +0000)
committertomo <tomo>
Fri, 12 Nov 1999 17:13:24 +0000 (17:13 +0000)
return value.

src/mule-charset.c

index 3c4a223..d3c9fd4 100644 (file)
@@ -383,7 +383,9 @@ Return the alist of attributes of CHARACTER.
 */
        (character))
 {
-  return get_char_code_table (XCHAR (character), Vcharacter_attribute_table);
+  CHECK_CHAR (character);
+  return Fcopy_alist (get_char_code_table (XCHAR (character),
+                                          Vcharacter_attribute_table));
 }
 
 DEFUN ("get-char-attribute", Fget_char_attribute, 2, 2, 0, /*