BUG/MEDIUM: stats: add missing INF_BUILD_INFO definition
authorAdis Nezirovic <anezirovic@haproxy.com>
Fri, 15 Jan 2021 12:12:33 +0000 (13:12 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Tue, 26 Jan 2021 09:08:26 +0000 (10:08 +0100)
commitd918314545a1cd3e77447a2e57ede10d7e242a2e
treefab15b38681bb4b38e847e54d089773935f29e42
parent9d3abc891ed419bd1247fc939c8b2a2977d3d126
BUG/MEDIUM: stats: add missing INF_BUILD_INFO definition

commit 5a982a71656ce885be4b1d4b90b8db31204788a1 ("MINOR:
contrib/prometheus-exporter: export build_info") is breaking lua
`core.get_info()`.

This patch makes sure build_info is correctly initialised in all cases.

Reviewed-by: William Dauchy <wdauchy@gmail.com>
(cherry picked from commit b62b78be131de1848d71350d369deac07daf448a)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
src/stats.c