r2642: smb_iconv_t is a pointer, so checks against -1 errors should use a cast
authorAndrew Tridgell <tridge@samba.org>
Sun, 26 Sep 2004 01:41:55 +0000 (01:41 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 17:59:15 +0000 (12:59 -0500)
(This used to be commit 28dcd2202948b003f8d13951395baa4a722593f4)

source4/lib/charcnv.c

index 3a3d470f9901ddf39b62146d4ae0e30e317c1711..2ee2bd9baeed96358acfc42b7d5a596f6fff72eb 100644 (file)
@@ -97,7 +97,7 @@ void init_iconv(void)
        for (c1=0;c1<NUM_CHARSETS;c1++) {
                for (c2=0;c2<NUM_CHARSETS;c2++) {
                        if (conv_handles[c1][c2] != NULL) {
-                               if (conv_handles[c1][c2] != -1) {
+                               if (conv_handles[c1][c2] != (smb_iconv_t)-1) {
                                        smb_iconv_close(conv_handles[c1][c2]);
                                }
                                conv_handles[c1][c2] = NULL;