From 1b34d4f0b1d634eb8219d52c693fa80b99ed1bfa Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Wed, 30 Sep 2009 02:39:57 +0200 Subject: find: add zeroing of G.xxx; ftpd - remove extraneous zeroing of G.xxx Brought "G trick" to the same shape in a few more places. Signed-off-by: Denys Vlasenko --- findutils/find.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'findutils') diff --git a/findutils/find.c b/findutils/find.c index 6f7be4fc2..76cd18c1a 100644 --- a/findutils/find.c +++ b/findutils/find.c @@ -109,6 +109,8 @@ struct globals { struct G_sizecheck { \ char G_sizecheck[sizeof(G) > COMMON_BUFSIZE ? -1 : 1]; \ }; \ + /* we have to zero it out because of NOEXEC */ \ + memset(&G, 0, offsetof(struct globals, need_print)); \ G.need_print = 1; \ G.recurse_flags = ACTION_RECURSE; \ } while (0) -- cgit v1.2.3