Use local p variable

This commit is contained in:
HummyPkg 2017-03-09 16:36:49 +00:00
parent d3484076ef
commit 5927a5e9ca

View File

@ -49,15 +49,14 @@ xconv(char *src, char *dst, size_t dstlen)
// Check for combined character. // Check for combined character.
if ((*s & 0xf0) == 0xc0 && s[1]) if ((*s & 0xf0) == 0xc0 && s[1])
{ {
icc_t *p;
int k = *s & 0xf; int k = *s & 0xf;
p = iso6937_combined[k]; icc_t *p = iso6937_combined[k];
for (i = 0; p[i].c; i++) for (i = 0; p[i].c; i++)
{ {
if (p[i].c == (s[1] & 0xff)) if (p[i].c == (s[1] & 0xff))
{ {
add_unicode(&d, &len, add_unicode(&d, &len, p[i].u);
iso6937_combined[k][i].u);
break; break;
} }
} }