commit | 79416cbd7abe63265d92f4c4dc0bc51a7cb2cf11 | [log] [tgz] |
---|---|---|
author | William Lallemand <wlallemand@haproxy.org> | Fri Sep 24 14:51:44 2021 +0200 |
committer | William Lallemand <wlallemand@haproxy.org> | Fri Sep 24 14:57:15 2021 +0200 |
tree | fd640ae0ba5568e7476a47fd9bb3c917d66517d7 | |
parent | d7df73a114a82cd70c5ec0a2d5d48b023c28ffa5 [diff] |
BUG/MINOR: httpclient/lua: return an error on argument check src/hlua.c:7074:6: error: variable 'url_str' is used uninitialized whenever 'if' condition is false [-Werror,-Wsometimes-uninitialized] if (lua_type(L, -1) == LUA_TSTRING) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/hlua.c:7079:36: note: uninitialized use occurs here hlua_hc->hc->req.url = istdup(ist(url_str)); ^~~~~~~ Return an error on the stack if the argument is not a string.