mirror of
https://github.com/samba-team/samba.git
synced 2024-12-25 23:21:54 +03:00
r14429: charset_t cannot be used to loop over charset_t, as otherwise it can
go out of the range of the enum
(This used to be commit caead24b6d
)
This commit is contained in:
parent
4ce5f82979
commit
69408532e7
@ -63,7 +63,7 @@ static smb_iconv_t conv_handles[NUM_CHARSETS][NUM_CHARSETS];
|
||||
**/
|
||||
_PUBLIC_ void init_iconv(void)
|
||||
{
|
||||
charset_t c1, c2;
|
||||
unsigned c1, c2;
|
||||
for (c1=0;c1<NUM_CHARSETS;c1++) {
|
||||
for (c2=0;c2<NUM_CHARSETS;c2++) {
|
||||
if (conv_handles[c1][c2] != NULL) {
|
||||
|
Loading…
Reference in New Issue
Block a user