]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: tools: make parse_line() provide hints about empty args
authorWilly Tarreau <w@1wt.eu>
Mon, 5 May 2025 14:11:42 +0000 (16:11 +0200)
committerWilly Tarreau <w@1wt.eu>
Mon, 5 May 2025 14:17:24 +0000 (16:17 +0200)
commit3f2c8af313494efd1000e5fcae313d8e6fa15976
treead2c1b99af817cbd76a19185b2df69e094f885e8
parent9d14f2c7646b9c39111fd7a5bba758ea38273c42
MINOR: tools: make parse_line() provide hints about empty args

In order to help parse_line() callers report the position of empty
args to the user, let's decide that if no error is emitted, then
we'll stuff the errptr with the position of the first empty arg
without affecting the return value.

Co-authored-by: Valentine Krasnobaeva <vkrasnobaeva@haproxy.com>
src/tools.c