svn commit: samba r2642 - in branches/SAMBA_4_0/source/lib: .

tridge at samba.org tridge at samba.org
Sun Sep 26 01:41:56 GMT 2004


Author: tridge
Date: 2004-09-26 01:41:55 +0000 (Sun, 26 Sep 2004)
New Revision: 2642

WebSVN: http://websvn.samba.org/websvn/changeset.php?rep=samba&path=/branches/SAMBA_4_0/source/lib&rev=2642&nolog=1

Log:
smb_iconv_t is a pointer, so checks against -1 errors should use a cast

Modified:
   branches/SAMBA_4_0/source/lib/charcnv.c


Changeset:
Modified: branches/SAMBA_4_0/source/lib/charcnv.c
===================================================================
--- branches/SAMBA_4_0/source/lib/charcnv.c	2004-09-26 01:41:04 UTC (rev 2641)
+++ branches/SAMBA_4_0/source/lib/charcnv.c	2004-09-26 01:41:55 UTC (rev 2642)
@@ -97,7 +97,7 @@
 	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;



More information about the samba-cvs mailing list