diff options
Diffstat (limited to 'src/ftfont.c')
| -rw-r--r-- | src/ftfont.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/ftfont.c b/src/ftfont.c index 7285aee9bd4..1ae3f88daa3 100644 --- a/src/ftfont.c +++ b/src/ftfont.c | |||
| @@ -568,7 +568,6 @@ ftfont_get_charset (Lisp_Object registry) | |||
| 568 | char *str = SSDATA (SYMBOL_NAME (registry)); | 568 | char *str = SSDATA (SYMBOL_NAME (registry)); |
| 569 | USE_SAFE_ALLOCA; | 569 | USE_SAFE_ALLOCA; |
| 570 | char *re = SAFE_ALLOCA (SBYTES (SYMBOL_NAME (registry)) * 2 + 1); | 570 | char *re = SAFE_ALLOCA (SBYTES (SYMBOL_NAME (registry)) * 2 + 1); |
| 571 | Lisp_Object regexp; | ||
| 572 | int i, j; | 571 | int i, j; |
| 573 | 572 | ||
| 574 | for (i = j = 0; i < SBYTES (SYMBOL_NAME (registry)); i++, j++) | 573 | for (i = j = 0; i < SBYTES (SYMBOL_NAME (registry)); i++, j++) |
| @@ -582,13 +581,13 @@ ftfont_get_charset (Lisp_Object registry) | |||
| 582 | re[j] = '.'; | 581 | re[j] = '.'; |
| 583 | } | 582 | } |
| 584 | re[j] = '\0'; | 583 | re[j] = '\0'; |
| 585 | regexp = make_unibyte_string (re, j); | 584 | AUTO_STRING_WITH_LEN (regexp, re, j); |
| 586 | SAFE_FREE (); | ||
| 587 | for (i = 0; fc_charset_table[i].name; i++) | 585 | for (i = 0; fc_charset_table[i].name; i++) |
| 588 | if (fast_c_string_match_ignore_case | 586 | if (fast_c_string_match_ignore_case |
| 589 | (regexp, fc_charset_table[i].name, | 587 | (regexp, fc_charset_table[i].name, |
| 590 | strlen (fc_charset_table[i].name)) >= 0) | 588 | strlen (fc_charset_table[i].name)) >= 0) |
| 591 | break; | 589 | break; |
| 590 | SAFE_FREE (); | ||
| 592 | if (! fc_charset_table[i].name) | 591 | if (! fc_charset_table[i].name) |
| 593 | return -1; | 592 | return -1; |
| 594 | if (! fc_charset_table[i].fc_charset) | 593 | if (! fc_charset_table[i].fc_charset) |