mirror of
https://github.com/samba-team/samba.git
synced 2025-01-08 21:18:16 +03:00
r2642: smb_iconv_t is a pointer, so checks against -1 errors should use a cast
(This used to be commit 28dcd22029
)
This commit is contained in:
parent
38aa974457
commit
9cafc0d07e
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user