[s3]loadparm: in lp_do_parameter() use function lp_local_ptr()
[ira/wip.git] / source3 / param / loadparm.c
index dc7026268b8a91bbdc6b587ec11b4f5e5e256703..025e3e92add7b44a54568d8cab54acea0772332d 100644 (file)
@@ -7222,9 +7222,7 @@ bool lp_do_parameter(int snum, const char *pszParmName, const char *pszParmValue
                               pszParmName));
                        return (True);
                }
-               parm_ptr =
-                       ((char *)ServicePtrs[snum]) + PTR_DIFF(def_ptr,
-                                                           &sDefault);
+               parm_ptr = lp_local_ptr(snum, def_ptr);
        }
 
        if (snum >= 0) {