projects
/
oweals
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
18f2a79
)
hush: suppress bogus warning from 4.2.1
author
Denis Vlasenko
<vda.linux@googlemail.com>
Sun, 5 Apr 2009 09:16:00 +0000
(09:16 -0000)
committer
Denis Vlasenko
<vda.linux@googlemail.com>
Sun, 5 Apr 2009 09:16:00 +0000
(09:16 -0000)
shell/hush.c
patch
|
blob
|
history
diff --git
a/shell/hush.c
b/shell/hush.c
index 43e715aff6566ff9ee751d894f3f863a3ff502b4..39d3c01de7635889770fc12274a93bb68b099729 100644
(file)
--- a/
shell/hush.c
+++ b/
shell/hush.c
@@
-1901,9
+1901,14
@@
static int expand_vars_to_list(o_string *output, int n, char *arg, char or_mask)
#endif
default: /* <SPECIAL_VAR_SYMBOL>varname<SPECIAL_VAR_SYMBOL> */
case_default: {
- bool exp_len = false, exp_null = false;
- char *var = arg, exp_save, exp_op, *exp_word;
+ bool exp_len = false;
+ bool exp_null = false;
+ char *var = arg;
+ char exp_save = exp_save; /* for compiler */
+ char exp_op = exp_op; /* for compiler */
+ char *exp_word = exp_word; /* for compiler */
size_t exp_off = 0;
+
*p = '\0';
arg[0] = first_ch & 0x7f;