]> git.ipfire.org Git - thirdparty/systemd.git/commit
journalctl: replace string_erase with memset('x') 5237/head
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Mon, 6 Feb 2017 01:09:41 +0000 (20:09 -0500)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Mon, 6 Feb 2017 02:07:55 +0000 (21:07 -0500)
commit1075122f42211ddb319126d6713a68a05056cd9d
treed0c9905660050869dc419eb06c63f5973c3d8791
parent2d26d8e07ee680995f96597a1cd713dd81491b89
journalctl: replace string_erase with memset('x')

The compiler should not be able to optimize out the memset, because optarg is global
memory. In this case, not making the argument an empty string is nicer, so just use
an open-coded version of string_erase from before the explicit_bzero change.
src/journal/journalctl.c