strequal() returns True for equal, not an int
authorAndrew Tridgell <tridge@samba.org>
Sun, 6 Apr 2003 12:28:50 +0000 (12:28 +0000)
committerAndrew Tridgell <tridge@samba.org>
Sun, 6 Apr 2003 12:28:50 +0000 (12:28 +0000)
(This used to be commit b96590ad092e32259ce24a20a6a8a30d98dfae7d)

source3/lib/iconv.c

index a37441b9fabfbc3ced30981e8f1eee05bc3fb33c..9240e2407471fa76374efb02d263b1e2e0182603 100644 (file)
@@ -71,7 +71,9 @@ static struct charset_functions *find_charset_functions(const char *name)
        module_path_get_name(name, stripped);
        
        while(c) {
-               if (strequal(stripped, c->name) == 0)return c;
+               if (strcasecmp(stripped, c->name) == 0) {
+                       return c;
+               }
                c = c->next;
        }
 
@@ -100,7 +102,7 @@ BOOL smb_register_charset(struct charset_functions *funcs)
 
 void lazy_initialize_iconv(void)
 {
-       static BOOL initialized = False;
+       static BOOL initialized;
        int i;
 
        if (!initialized) {