]> git.ipfire.org Git - thirdparty/haproxy.git/commit
CLEANUP: pattern: use calloc() rather than malloc for structures
authorWilly Tarreau <w@1wt.eu>
Fri, 30 Oct 2020 14:35:11 +0000 (15:35 +0100)
committerWilly Tarreau <w@1wt.eu>
Sat, 31 Oct 2020 12:14:10 +0000 (13:14 +0100)
commit8135d9bc0cf48745e2f5894c7ff068495e350dc3
treea91c3326e6ac6a5dbcd8dd3f18d897750d5b4f3a
parent6bedf151e1a934ff6673fc18bbca08440fc1e54f
CLEANUP: pattern: use calloc() rather than malloc for structures

It's particularly difficult to make sure that the various pattern
structures are properly initialized given that they can be allocated
at multiple places and systematically via malloc() instead of calloc(),
thus not even leaving the possibility of default values. Let's adjust
a few of them.
src/pattern.c