From 956b78e8e3636bbf04e264ca96128edc2cbf3626 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Thu, 16 Jun 2011 08:51:14 +0200 Subject: 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/service.c | 1 - 1 file changed, 1 deletion(-) (limited to 'src/core/service.c') diff --git a/src/core/service.c b/src/core/service.c index 30598de9b8..1c127bdbcb 100644 --- a/src/core/service.c +++ b/src/core/service.c @@ -564,7 +564,6 @@ static int service_load_sysv_path(Service *s, const char *path) { goto finish; } - zero(st); if (fstat(fileno(f), &st) < 0) { r = -errno; goto finish; -- cgit v1.2.3-54-g00ecf