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()")]

(cherry picked from commit 9420cfc0db94acb9a76a265c7fbd56065863934b)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
(cherry picked from commit bd8ec51210ac5bfdaabde2223f56ef912fca66c5)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
1 file changed