]> code.delx.au - gnu-emacs/commitdiff
(find_charset_in_str): Fix use of `c' instead of `c1'.
authorDave Love <fx@gnu.org>
Mon, 21 Feb 2000 10:03:46 +0000 (10:03 +0000)
committerDave Love <fx@gnu.org>
Mon, 21 Feb 2000 10:03:46 +0000 (10:03 +0000)
src/charset.c

index 04afa7f32379b4054abce88a1c9eb25d4ca173bf..c040134f1bb5fe74b74d068779cdb184ea68d450 100644 (file)
@@ -773,7 +773,7 @@ find_charset_in_str (str, len, charsets, table, multibyte)
      Lisp_Object table;
      int multibyte;
 {
-  register int num = 0, c;
+  register int num = 0;
 
   if (! multibyte)
     {
@@ -808,7 +808,7 @@ find_charset_in_str (str, len, charsets, table, multibyte)
        {
          int c1 = translate_char (table, -1, charset, c1, c2);
          if (c1 >= 0)
-           charset = CHAR_CHARSET (c);
+           charset = CHAR_CHARSET (c1);
        }
 
       if (!charsets[charset])