Workaround 'overflow in pointer subtraction' cppcheck warning
authorIvan Maidanski <ivmai@mail.ru>
Mon, 17 Oct 2016 05:08:18 +0000 (08:08 +0300)
committerIvan Maidanski <ivmai@mail.ru>
Mon, 17 Oct 2016 05:08:18 +0000 (08:08 +0300)
commit7bceefbbd85a5b873e46299a4a55f50e2b56294a
treeffe539462899f1d92652e425655b233e3e9d4218
parent53726beb93453583ce8413791dc731d1779e959d
Workaround 'overflow in pointer subtraction' cppcheck warning

* src/atomic_ops_malloc.c (AO_free): Do not perform subtraction from
"p" argument if its value is null; change type of "base" local variable
from char* to AO_t*.
src/atomic_ops_malloc.c