Deleted Added
full compact
41c41
< __FBSDID("$FreeBSD: head/lib/libc/locale/euc.c 101487 2002-08-07 20:20:56Z ache $");
---
> __FBSDID("$FreeBSD: head/lib/libc/locale/euc.c 101498 2002-08-08 05:51:54Z ache $");
66c66
< int x;
---
> int x, new__mb_cur_max;
72,73c72
< if (!rl->variable) {
< free(rl);
---
> if (rl->variable == NULL)
75,76d73
< }
< v = (char *) rl->variable;
77a75,76
> v = (char *)rl->variable;
>
81,82c80
< if ((ei = malloc(sizeof(_EucInfo))) == NULL) {
< free(rl);
---
> if ((ei = malloc(sizeof(_EucInfo))) == NULL)
84,85c82,83
< }
< __mb_cur_max = 0;
---
>
> new__mb_cur_max = 0;
87c85
< ei->count[x] = (int) strtol(v, &e, 0);
---
> ei->count[x] = (int)strtol(v, &e, 0);
89d86
< free(rl);
93,94c90,91
< if (__mb_cur_max < ei->count[x])
< __mb_cur_max = ei->count[x];
---
> if (new__mb_cur_max < ei->count[x])
> new__mb_cur_max = ei->count[x];
97c94
< ei->bits[x] = (int) strtol(v, &e, 0);
---
> ei->bits[x] = (int)strtol(v, &e, 0);
99d95
< free(rl);
108d103
< free(rl);
112,117c107
< if (sizeof(_EucInfo) <= rl->variable_len) {
< memcpy(rl->variable, ei, sizeof(_EucInfo));
< free(ei);
< } else {
< rl->variable = ei;
< }
---
> rl->variable = ei;
119a110
> __mb_cur_max = new__mb_cur_max;