]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUILD: hlua: Fix warnings about uninitialized variables
authorChristopher Faulet <cfaulet@haproxy.com>
Thu, 12 Jun 2025 06:42:18 +0000 (08:42 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Thu, 12 Jun 2025 06:46:36 +0000 (08:46 +0200)
commit01f011faebb68a079a4fa16478d3b0d992b3bd3e
treec9d39728f875f10742fffab9ac509e5d19573587
parent8c573deb9f95ae3171440d682b08abccda234e6d
BUILD: hlua: Fix warnings about uninitialized variables

In hlua_applet_tcp_recv_try() and hlua_applet_tcp_getline_yield(), GCC 14.2
reports warnings about 'blk2' variable that may be used uninitialized. It is
a bit strange because the code is pretty similar than before. But to make it
happy and to avoid bugs if the API change in future, 'blk2' is now used only
when its length is greater than 0.

No need to backport.
src/hlua.c