]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: config: don't count trailing spaces as empty arg
authorErwan Le Goas <elegoas@haproxy.com>
Fri, 23 Sep 2022 13:06:34 +0000 (15:06 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Wed, 28 Sep 2022 13:16:29 +0000 (15:16 +0200)
commit5529424ef1c9aae4ca714a99ffca2082e533781f
tree88540152a2a8d76aec331a3223fb48bb453e6f15
parent3a374eaeebb6aab0302653d048d08707c1ecd17c
BUG/MINOR: config: don't count trailing spaces as empty arg

In parse_line(), spaces increment the arg count and it is incremented
again on '#' or end of line, resulting in an extra empty arg at the
end of arg's list. The visible effect is that the reported arg count
is in excess of 1. It doesn't seem to affect regular function but
specialized ones like anonymisation depends on this count.

This may need to be backported to stable versions.
src/tools.c