]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: cfgparse-global: remove redundant goto
authorValentine Krasnobaeva <vkrasnobaeva@haproxy.com>
Wed, 14 Aug 2024 12:49:51 +0000 (14:49 +0200)
committerWilliam Lallemand <wlallemand@haproxy.com>
Tue, 20 Aug 2024 17:16:29 +0000 (19:16 +0200)
commitf29be97ac7255d85372479323f460aeaba81d7ba
tree96c1e0990af68509a4f5364a0722249b6bad5fd0
parent74bc6f3d66b40b1010fe4bdfbab6d7f08199c6fa
BUG/MINOR: cfgparse-global: remove redundant goto

In the case, when the given keyword was found in the global 'cfg_kws' list, we
go to 'out' label anyway, after testing rc returned by the keyword's parser. So
there is not a much gain if we perform 'goto out' jump specifically when rc > 0.
src/cfgparse-global.c