Workaround 'condition my_chunk_ptr is always false' cppcheck false positive
authorIvan Maidanski <ivmai@mail.ru>
Fri, 19 Oct 2018 18:13:19 +0000 (21:13 +0300)
committerIvan Maidanski <ivmai@mail.ru>
Mon, 29 Oct 2018 05:06:45 +0000 (08:06 +0300)
commite9e84c26b7f87977bc774c3a92a74866951c8eec
treebac69a6fc79d8cae098f4eb4518eff595a9d6621
parent45c9efc2a7c4d71ea4c209bc6ce587d0f4d6c170
Workaround 'condition my_chunk_ptr is always false' cppcheck false positive

* src/atomic_ops_malloc.c (get_chunk): Move get_mmaped() call into the
for loop; replace return statement inside the loop with break.
src/atomic_ops_malloc.c