remove whitespace from comma separated arguments to variable functions

This commit is contained in:
Axel Kohlmeyer
2021-09-01 14:02:35 -04:00
parent 9085662e2b
commit e6d7a544e2

View File

@ -4720,7 +4720,7 @@ int Variable::parse_args(char *str, char **args)
while (ptr && narg < MAXFUNCARG) {
ptrnext = find_next_comma(ptr);
if (ptrnext) *ptrnext = '\0';
args[narg] = utils::strdup(ptr);
args[narg] = utils::strdup(utils::trim(ptr));
narg++;
ptr = ptrnext;
if (ptr) ptr++;