]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: hlua: ambiguous lua_pushvalue with 0 index
authorAurelien DARRAGON <adarragon@haproxy.com>
Thu, 29 Sep 2022 10:00:04 +0000 (12:00 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Fri, 30 Sep 2022 13:21:20 +0000 (15:21 +0200)
commitcd341d53146f8bc399b865dce1ec1426c76842fb
tree004f28f25bf78728a15511b033880137df3af3da
parent28f0a60a75262510464c19b4ec1d64cc7cb526c0
MINOR: hlua: ambiguous lua_pushvalue with 0 index

In function hlua_applet_http_send_response(), a pushvalue
is performed with index '0'.

But according to lua doc (https://www.lua.org/manual/5.3/manual.html#4.3):
"Note that 0 is never an acceptable index".

Adding a FIXME comment near to the pushvalue operation
so that this can get some chance to be reviewed later.

No backport needed.
src/hlua.c