From 378ab6819907fa9e439e93ed081c73c2351b4330 Mon Sep 17 00:00:00 2001 From: Ian Wienand Date: Wed, 14 Sep 2011 08:41:38 +0200 Subject: login: new option LOGIN_SESSION_AS_CHILD Signed-off-by: Ian Wienand Signed-off-by: Denys Vlasenko --- debianutils/run_parts.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'debianutils') diff --git a/debianutils/run_parts.c b/debianutils/run_parts.c index 65cbfc338..8f08f6dc6 100644 --- a/debianutils/run_parts.c +++ b/debianutils/run_parts.c @@ -66,6 +66,7 @@ struct globals { #define names (G.names) #define cur (G.cur ) #define cmd (G.cmd ) +#define INIT_G() do { } while (0) enum { NUM_CMD = (COMMON_BUFSIZE - sizeof(G)) / sizeof(cmd[0]) - 1 }; @@ -143,6 +144,8 @@ int run_parts_main(int argc UNUSED_PARAM, char **argv) unsigned n; int ret; + INIT_G(); + #if ENABLE_FEATURE_RUN_PARTS_LONG_OPTIONS applet_long_options = runparts_longopts; #endif -- cgit v1.2.3