]> git.ipfire.org Git - thirdparty/util-linux.git/commit
logger: optimize string initializations
authorSami Kerola <kerolasa@iki.fi>
Sat, 9 Aug 2014 07:38:58 +0000 (08:38 +0100)
committerSami Kerola <kerolasa@iki.fi>
Fri, 15 Aug 2014 20:52:12 +0000 (21:52 +0100)
commit77c3bd5bf63093dfe54206be867c3d0c1fe46510
tree4c0308103a917e753b1b8e079bfe7bc2252b2310
parent35d3619793aad012bedc8ad7bff47218e2b5d663
logger: optimize string initializations

Setting whole array to be completely full of nulls cannot be as quick as
making the only significant member of the array when needed.

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
misc-utils/logger.c