diff options
author | Denis Vlasenko | 2008-02-27 18:41:59 +0000 |
---|---|---|
committer | Denis Vlasenko | 2008-02-27 18:41:59 +0000 |
commit | 574f2f43948bb21d6e4187936ba5a5afccba25f6 (patch) | |
tree | 0b39aca564149e5ad30b3cc791228655ff1b1827 /shell/hush.c | |
parent | fe66a0eca1bfeae0abc0fc1e7d3709f271e05e82 (diff) | |
download | busybox-574f2f43948bb21d6e4187936ba5a5afccba25f6.zip busybox-574f2f43948bb21d6e4187936ba5a5afccba25f6.tar.gz |
*: add optimization barrier to all "G trick" locations
Diffstat (limited to 'shell/hush.c')
-rw-r--r-- | shell/hush.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/shell/hush.c b/shell/hush.c index d9ef239..b44f35b 100644 --- a/shell/hush.c +++ b/shell/hush.c @@ -460,6 +460,9 @@ enum { run_list_level = 0 }; #endif #define charmap (G.charmap ) #define user_input_buf (G.user_input_buf ) +#define INIT_G() do { \ + SET_PTR_TO_GLOBALS(xzalloc(sizeof(G))); \ +} while (0) #define B_CHUNK 100 @@ -3778,7 +3781,7 @@ int hush_main(int argc, char **argv) char **e; struct variable *cur_var; - PTR_TO_GLOBALS = xzalloc(sizeof(G)); + INIT_G(); /* Deal with HUSH_VERSION */ shell_ver = const_shell_ver; /* copying struct here */ |