]> git.ipfire.org Git - thirdparty/haproxy.git/commit
CLEANUP: log: lf_text_len() returns a pointer not an integer
authorAurelien DARRAGON <adarragon@haproxy.com>
Tue, 9 Apr 2024 13:28:00 +0000 (15:28 +0200)
committerAurelien DARRAGON <adarragon@haproxy.com>
Tue, 9 Apr 2024 15:35:53 +0000 (17:35 +0200)
commit9420cfc0db94acb9a76a265c7fbd56065863934b
tree81e4b6874c7c8fbc480a4bc6ea44b8e614f1da77
parent28548f812fb7070e051fa79c8b28bba4f8a362e1
CLEANUP: log: lf_text_len() returns a pointer not an integer

In c83684519 ("MEDIUM: log: add the ability to include samples in logs")
we checked the return value of lf_text_len() as an integer instead of
comparing the pointer with NULL explicitly. Since this may be confusing,
let's test the return value against NULL.

[ada: for backports, the patch needs to be applied manually because of
 c6a713842 ("MINOR: log: simplify last_isspace in sess_build_logline()")]
src/log.c