Use local p variable
This commit is contained in:
parent
d3484076ef
commit
5927a5e9ca
7
xconv.c
7
xconv.c
@ -49,15 +49,14 @@ xconv(char *src, char *dst, size_t dstlen)
|
||||
// Check for combined character.
|
||||
if ((*s & 0xf0) == 0xc0 && s[1])
|
||||
{
|
||||
icc_t *p;
|
||||
int k = *s & 0xf;
|
||||
p = iso6937_combined[k];
|
||||
icc_t *p = iso6937_combined[k];
|
||||
|
||||
for (i = 0; p[i].c; i++)
|
||||
{
|
||||
if (p[i].c == (s[1] & 0xff))
|
||||
{
|
||||
add_unicode(&d, &len,
|
||||
iso6937_combined[k][i].u);
|
||||
add_unicode(&d, &len, p[i].u);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user