]> err.no Git - systemd/commit
udevd: avoid implicit memset in match_attr()
authorAlan Jenkins <alan-jenkins@tuffmail.co.uk>
Sat, 25 Oct 2008 14:51:19 +0000 (15:51 +0100)
committerKay Sievers <kay.sievers@vrfy.org>
Sun, 26 Oct 2008 01:11:56 +0000 (02:11 +0100)
commitcd94c04c518fffbf7f2c173952d77414a5d6bb6b
treed8730d3d34b25d349fedff0a264dd5947d318122
parente25fa4faf5b4977cc90c87003a41107a920bbe4d
udevd: avoid implicit memset in match_attr()

Initializing a char array to "" is equivalent to a memset()
call - which is exactly what it gets compiled to.

Fixing this one callsite reduced memset() _user_ cpu cycles
from 2-4% to 0.05% on the EeePC.

Signed-off-by: Alan Jenkins <alan-jenkins@tuffmail.co.uk>
udev/udev-rules.c