]> https://gitweb.dealii.org/ - dealii.git/commit
Skip an assert for posix_memalign if size==0. 17814/head
authorWolfgang Bangerth <bangerth@colostate.edu>
Tue, 29 Oct 2024 02:17:22 +0000 (20:17 -0600)
committerWolfgang Bangerth <bangerth@colostate.edu>
Tue, 29 Oct 2024 02:17:22 +0000 (20:17 -0600)
commit5853c7b59bcb2992d6b513b5c14e3a4f9bb63ed2
tree5aa1ffcf84d6bf4e648c7a3383adad04781ecb26
parente7135bd5d14263419a941743aa1c086dfc436f55
Skip an assert for posix_memalign if size==0.

POSIX says that the returned pointer can be a nullptr if the size requested is
zero. So skip the assertion if size==0.
source/base/utilities.cc

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.