]> git.ipfire.org Git - thirdparty/systemd.git/commit
alloc-util: avoid allocating zero size memory blocks
authorLennart Poettering <lennart@poettering.net>
Wed, 14 Oct 2020 08:24:08 +0000 (10:24 +0200)
committerLennart Poettering <lennart@poettering.net>
Wed, 14 Oct 2020 08:39:48 +0000 (10:39 +0200)
commit562b01e99646a21ba8a0f4f52c578a38b3f7d03d
tree1b101c1987b53ce48c5cf1a724aab990e2029cff
parenta748b122be6472de2db5090d6fa3ce7a1818d4c6
alloc-util: avoid allocating zero size memory blocks

It's not clear what libc's make of this. We clamp to 1 byte allocations
in most cases already, let's add this for a few where this was missing.
src/basic/alloc-util.h