diff options
Diffstat (limited to 'source4/param/loadparm.c')
-rw-r--r-- | source4/param/loadparm.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/source4/param/loadparm.c b/source4/param/loadparm.c index 89ba792600..456a57c6fa 100644 --- a/source4/param/loadparm.c +++ b/source4/param/loadparm.c @@ -3011,10 +3011,13 @@ static BOOL lp_do_parameter_parametric(int snum, const char *pszParmName, const struct param_opt *paramo, *data; char *name; + while (isspace(*pszParmName)) { + pszParmName++; + } + name = strdup(pszParmName); if (!name) return False; - string_sub(name, " ", "", 0); strlower(name); if (snum < 0) { |