chiark / gitweb /
sd-daemon: remove unnecessary memset calls
authorJim Meyering <jim@meyering.net>
Thu, 16 Jun 2011 06:51:14 +0000 (08:51 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Sun, 22 Jul 2012 22:06:06 +0000 (00:06 +0200)
commit956b78e8e3636bbf04e264ca96128edc2cbf3626
treed0a6aadc103d7d907b66a2fe20a6012f4865809c
parent17804d7f0a4002d4f0b8f1dc6e25fcca9381c13e
sd-daemon: remove unnecessary memset calls

There is no point in clearing the bits of a "struct stat" when the very
next statement just calls stat or fstat to fill in that same memory.

[zj: two more places]
src/core/load-fragment.c
src/core/service.c
src/libsystemd-daemon/sd-daemon.c