diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2009-09-30 02:39:57 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2009-09-30 02:39:57 +0200 |
commit | 1b34d4f0b1d634eb8219d52c693fa80b99ed1bfa (patch) | |
tree | 1fa51b9580409d4fa8de86bf8c9b2ab083caf10d /networking/ftpd.c | |
parent | c34c033c4256f88e759c5f7a59526b4397852a82 (diff) | |
download | busybox-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 'networking/ftpd.c')
-rw-r--r-- | networking/ftpd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/networking/ftpd.c b/networking/ftpd.c index a8687fbda..70a353312 100644 --- a/networking/ftpd.c +++ b/networking/ftpd.c | |||
@@ -662,7 +662,7 @@ popen_ls(const char *opt) | |||
662 | execv(bb_busybox_exec_path + 1, (char**) argv); | 662 | execv(bb_busybox_exec_path + 1, (char**) argv); |
663 | _exit(127); | 663 | _exit(127); |
664 | #else | 664 | #else |
665 | memset(&G, 0, sizeof(G)); | 665 | /* memset(&G, 0, sizeof(G)); - ls_main does it */ |
666 | exit(ls_main(ARRAY_SIZE(argv) - 1, (char**) argv)); | 666 | exit(ls_main(ARRAY_SIZE(argv) - 1, (char**) argv)); |
667 | #endif | 667 | #endif |
668 | } | 668 | } |
@@ -1114,7 +1114,7 @@ int ftpd_main(int argc UNUSED_PARAM, char **argv) | |||
1114 | /* --group-directories-first would be nice, but ls don't do that yet */ | 1114 | /* --group-directories-first would be nice, but ls don't do that yet */ |
1115 | xchdir(argv[2]); | 1115 | xchdir(argv[2]); |
1116 | argv[2] = (char*)"--"; | 1116 | argv[2] = (char*)"--"; |
1117 | memset(&G, 0, sizeof(G)); | 1117 | /* memset(&G, 0, sizeof(G)); - ls_main does it */ |
1118 | return ls_main(argc, argv); | 1118 | return ls_main(argc, argv); |
1119 | } | 1119 | } |
1120 | #endif | 1120 | #endif |