r14429: charset_t cannot be used to loop over charset_t, as otherwise it can
authorAndrew Tridgell <tridge@samba.org>
Wed, 15 Mar 2006 05:49:45 +0000 (05:49 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 18:57:22 +0000 (13:57 -0500)
go out of the range of the enum
(This used to be commit caead24b6dd2f2e87e113587cacd57794487a83a)

source4/lib/charset/charcnv.c

index a10a336fd2a31d20085d0ee8091bf686ce445d9f..3ee8adf772968517cb6059b5757ec3a7ec24e4fa 100644 (file)
@@ -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) {