]> git.ipfire.org Git - thirdparty/haproxy.git/commit
CLEANUP: map: slightly reorder the add map function
authorWilly Tarreau <w@1wt.eu>
Thu, 29 Apr 2021 14:02:48 +0000 (16:02 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 30 Apr 2021 13:36:31 +0000 (15:36 +0200)
commitf7dd0e8796a2a1ca5f5adfe7c7552163717213a1
treec58bade805d3de4f7d96a95c51035f3ac90e28d4
parent4000ff04482142c0531708d0ac14f87bf30288f4
CLEANUP: map: slightly reorder the add map function

The function uses two distinct code paths for single the key/value pair
and multiple pairs inserted as payload, each with a copy-paste of the
error handling. Let's modify the loop to factor them out.
src/map.c