diff options
Diffstat (limited to 'coreutils/dd.c')
-rw-r--r-- | coreutils/dd.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/coreutils/dd.c b/coreutils/dd.c index 627e7e7b5..c5c9476af 100644 --- a/coreutils/dd.c +++ b/coreutils/dd.c | |||
@@ -36,8 +36,10 @@ struct globals { | |||
36 | off_t out_full, out_part, in_full, in_part; | 36 | off_t out_full, out_part, in_full, in_part; |
37 | }; | 37 | }; |
38 | #define G (*(struct globals*)&bb_common_bufsiz1) | 38 | #define G (*(struct globals*)&bb_common_bufsiz1) |
39 | /* We have to zero it out because of NOEXEC */ | 39 | #define INIT_G() do { \ |
40 | #define INIT_G() memset(&G, 0, sizeof(G)) | 40 | /* we have to zero it out because of NOEXEC */ \ |
41 | memset(&G, 0, sizeof(G)); \ | ||
42 | } while (0) | ||
41 | 43 | ||
42 | 44 | ||
43 | static void dd_output_status(int UNUSED_PARAM cur_signal) | 45 | static void dd_output_status(int UNUSED_PARAM cur_signal) |