diff options
-rw-r--r-- | runit/sv.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/runit/sv.c b/runit/sv.c index 630f1f37e..477c1ac6e 100644 --- a/runit/sv.c +++ b/runit/sv.c | |||
@@ -205,10 +205,8 @@ struct globals { | |||
205 | #define islog (G.islog ) | 205 | #define islog (G.islog ) |
206 | #define INIT_G() do { \ | 206 | #define INIT_G() do { \ |
207 | setup_common_bufsiz(); \ | 207 | setup_common_bufsiz(); \ |
208 | /* need to zero out, we are NOEXEC */ \ | 208 | /* need to zero out, svc calls sv() repeatedly */ \ |
209 | rc = EXIT_SUCCESS; \ | 209 | memset(&G, 0, sizeof(G)); \ |
210 | islog = 0; \ | ||
211 | /* other fields need not be zero */ \ | ||
212 | } while (0) | 210 | } while (0) |
213 | 211 | ||
214 | 212 | ||
@@ -707,8 +705,6 @@ int svc_main(int argc UNUSED_PARAM, char **argv) | |||
707 | const char *optstring; | 705 | const char *optstring; |
708 | unsigned opts; | 706 | unsigned opts; |
709 | 707 | ||
710 | INIT_G(); | ||
711 | |||
712 | optstring = "udopchaitkx"; | 708 | optstring = "udopchaitkx"; |
713 | opts = getopt32(argv, optstring); | 709 | opts = getopt32(argv, optstring); |
714 | argv += optind; | 710 | argv += optind; |