diff options
Diffstat (limited to 'source4/param')
-rw-r--r-- | source4/param/loadparm.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/source4/param/loadparm.c b/source4/param/loadparm.c index 55d15653f6..2b2926d053 100644 --- a/source4/param/loadparm.c +++ b/source4/param/loadparm.c @@ -1861,11 +1861,14 @@ BOOL lp_do_parameter(int snum, const char *pszParmName, const char *pszParmValue /* now switch on the type of variable it is */ switch (parm_table[parmnum].type) { - case P_BOOL: - if (!set_boolean(pszParmValue, parm_ptr)) { + case P_BOOL: { + BOOL b; + if (!set_boolean(pszParmValue, &b)) { DEBUG(0,("lp_do_parameter(%s): value is not boolean!\n", pszParmValue)); return False; } + *(int *)parm_ptr = b; + } break; case P_INTEGER: |