]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: log: simplify last_isspace in sess_build_logline()
authorAurelien DARRAGON <adarragon@haproxy.com>
Wed, 10 Jan 2024 16:41:47 +0000 (17:41 +0100)
committerAurelien DARRAGON <adarragon@haproxy.com>
Tue, 20 Feb 2024 14:49:55 +0000 (15:49 +0100)
commitc6a7138420807db7cf0450208a3102584d424103
tree219fbe6e422bcc39d44609a829a5f8eae286ec8b
parent1448478d62feed5a476705ab2892b5cb4622b68d
MINOR: log: simplify last_isspace in sess_build_logline()

last_isspace variable is explicitly set to 0 in all cases except
LOG_FMT_SEPARATOR case. So we can actually simplify the code by setting
last_isspace to 0 by default and skipping the assignment for the
LOG_FMT_SEPARATOR case.
src/log.c