]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: stats: replace objt_* by __objt_* macros
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Mon, 29 Apr 2024 12:16:19 +0000 (14:16 +0200)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Mon, 29 Apr 2024 12:21:10 +0000 (14:21 +0200)
commit20bc42e69722bb129c62fc2450a4a6757250ee0a
tree5df7b598b057beedd8893015258ed18b4af45d3f
parent83639edd244048298f07fc33f5595409c524a107
BUG/MINOR: stats: replace objt_* by __objt_* macros

Update parse_stat_line() used during stats-file parsing. For each line,
GUID is extracted first to access to the object instance. obj_type()
is then invoked to retrieve the correct object type.

Replace objt_* by __objt_* macros to mark its result as safe and non
NULL.

This should fix coverity report from github issue #2550.

No need to backport.
src/stats-file.c