aboutsummaryrefslogtreecommitdiff
path: root/findutils
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2009-09-30 02:39:57 +0200
committerDenys Vlasenko <vda.linux@googlemail.com>2009-09-30 02:39:57 +0200
commit1b34d4f0b1d634eb8219d52c693fa80b99ed1bfa (patch)
tree1fa51b9580409d4fa8de86bf8c9b2ab083caf10d /findutils
parentc34c033c4256f88e759c5f7a59526b4397852a82 (diff)
downloadbusybox-w32-1b34d4f0b1d634eb8219d52c693fa80b99ed1bfa.tar.gz
busybox-w32-1b34d4f0b1d634eb8219d52c693fa80b99ed1bfa.tar.bz2
busybox-w32-1b34d4f0b1d634eb8219d52c693fa80b99ed1bfa.zip
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 <vda.linux@googlemail.com>
Diffstat (limited to 'findutils')
-rw-r--r--findutils/find.c2
1 files changed, 2 insertions, 0 deletions
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 {
109 struct G_sizecheck { \ 109 struct G_sizecheck { \
110 char G_sizecheck[sizeof(G) > COMMON_BUFSIZE ? -1 : 1]; \ 110 char G_sizecheck[sizeof(G) > COMMON_BUFSIZE ? -1 : 1]; \
111 }; \ 111 }; \
112 /* we have to zero it out because of NOEXEC */ \
113 memset(&G, 0, offsetof(struct globals, need_print)); \
112 G.need_print = 1; \ 114 G.need_print = 1; \
113 G.recurse_flags = ACTION_RECURSE; \ 115 G.recurse_flags = ACTION_RECURSE; \
114} while (0) 116} while (0)