diff options
author | Denys Vlasenko | 2011-09-21 01:59:15 +0200 |
---|---|---|
committer | Denys Vlasenko | 2011-09-21 01:59:15 +0200 |
commit | 16714245f9a16ce3725aab079aea7b0d28c6b32f (patch) | |
tree | 41edbcd1c279b2baae2d5e5751639076e0a3bfad /coreutils/expr.c | |
parent | 5c6ba6c56f9653488e1d805e727bb06c39ed23fa (diff) | |
download | busybox-16714245f9a16ce3725aab079aea7b0d28c6b32f.zip busybox-16714245f9a16ce3725aab079aea7b0d28c6b32f.tar.gz |
add INIT_G()'s. No code changes.
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'coreutils/expr.c')
-rw-r--r-- | coreutils/expr.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/coreutils/expr.c b/coreutils/expr.c index 24e75b5..c986f93 100644 --- a/coreutils/expr.c +++ b/coreutils/expr.c @@ -100,6 +100,7 @@ struct globals { char **args; } FIX_ALIASING; #define G (*(struct globals*)&bb_common_bufsiz1) +#define INIT_G() do { } while (0) /* forward declarations */ static VALUE *eval(void); @@ -519,6 +520,8 @@ int expr_main(int argc UNUSED_PARAM, char **argv) { VALUE *v; + INIT_G(); + xfunc_error_retval = 2; /* coreutils compat */ G.args = argv + 1; if (*G.args == NULL) { |