s3:loadparm: fix an implicit cast warning in string intialization in init_globals()
authorMichael Adam <obnox@samba.org>
Thu, 21 Jul 2011 15:22:22 +0000 (17:22 +0200)
committerMichael Adam <obnox@samba.org>
Thu, 21 Jul 2011 16:39:15 +0000 (18:39 +0200)
Autobuild-User: Michael Adam <obnox@samba.org>
Autobuild-Date: Thu Jul 21 18:39:15 CEST 2011 on sn-devel-104

source3/param/loadparm.c

index 85caf2071225d0c1b6327dec98bc2b77d1c8e1f1..16eb719f922cc107364cc38143d1d5b660666fae 100644 (file)
@@ -4706,7 +4706,7 @@ static void init_globals(bool reinit_globals)
                if ((parm_table[i].type == P_STRING ||
                     parm_table[i].type == P_USTRING))
                {
-                       string_set(lp_parm_ptr(NULL, &parm_table[i]), "");
+                       string_set((char **)lp_parm_ptr(NULL, &parm_table[i]), "");
                }
        }