]> git.ipfire.org Git - thirdparty/systemd.git/commit
util: add greedy_realloc0()
authorDavid Herrmann <dh.herrmann@gmail.com>
Sat, 30 Nov 2013 10:31:59 +0000 (11:31 +0100)
committerDavid Herrmann <dh.herrmann@gmail.com>
Sun, 1 Dec 2013 11:17:08 +0000 (12:17 +0100)
commit4545a231fcccc2ef670ef70f7b38f4e0a04f86ae
treefdac1d17b6b05703f56f948e1962508eb4b15c2b
parenta0a6be9f6ab55ea76215c7fa4a5eab2235687348
util: add greedy_realloc0()

Compared to greedy_realloc(), this sets all newly allocated memory to 0.
As the old variant has been used a lot for string-handling, we avoid
changing it as clearing memory is not needed there.
src/shared/util.c
src/shared/util.h