]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUILD: lua: silence some compiler warnings about potential null derefs (#2)
authorWilly Tarreau <w@1wt.eu>
Tue, 16 Oct 2018 15:37:12 +0000 (17:37 +0200)
committerWilly Tarreau <w@1wt.eu>
Tue, 16 Oct 2018 15:39:05 +0000 (17:39 +0200)
commite09101e8d92b0c0ef8674fbc791e309112ab7f1c
tree7586c9aa4ff68e62d59e7f5c262e2bd864ed3208
parent526aed219f83eb86f1ee578e8e5233f11edf34ea
BUILD: lua: silence some compiler warnings about potential null derefs (#2)

Here we make sure that appctx is always taken from the unchecked value
since we know it's an appctx, which explains why it's immediately
dereferenced. A missing test was added to ensure that task_new() does
not return a NULL.

This may be backported to 1.8.
src/hlua.c