commit | 9c4f08ae3915fe325d9d40f269652b88bfdefe03 | [log] [tgz] |
---|---|---|
author | Olivier Houchard <ohouchard@haproxy.com> | Fri Feb 01 16:28:04 2019 +0100 |
committer | Olivier Houchard <cognet@ci0.org> | Fri Feb 01 16:30:08 2019 +0100 |
tree | f00b9e180587b77c2bba990e9b506a9a2e74420a | |
parent | 3e451842dcd5f2d6f063156e2fa4b78195f097e6 [diff] |
BUG/MINOR: tune.fail-alloc: Don't forget to initialize ret. In mem_should_fail(), if we don't want to fail the allocation, either because mem_fail_rate is 0, or because we're still initializing, don't forget to initialize ret, or we may return a non-zero value, and fail an allocation we didn't want to fail. This should only affect users that compile with DEBUG_FAIL_ALLOC.