diff options
-rw-r--r-- | shell/ash.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/shell/ash.c b/shell/ash.c index fd09e7662..b753678c0 100644 --- a/shell/ash.c +++ b/shell/ash.c | |||
@@ -2944,11 +2944,11 @@ listvars(int on, int off, struct strlist *lp, char ***end) | |||
2944 | static void | 2944 | static void |
2945 | setwinxp(int on) | 2945 | setwinxp(int on) |
2946 | { | 2946 | { |
2947 | static smallint is_winxp; | 2947 | static smallint is_winxp = 1; |
2948 | struct var **vpp; | 2948 | struct var **vpp; |
2949 | struct var *vp; | 2949 | struct var *vp; |
2950 | 2950 | ||
2951 | if (++on == is_winxp) | 2951 | if (on == is_winxp) |
2952 | return; | 2952 | return; |
2953 | is_winxp = on; | 2953 | is_winxp = on; |
2954 | 2954 | ||
@@ -2959,7 +2959,7 @@ setwinxp(int on) | |||
2959 | if (!end || is_prefixed_with(vp->var_text, "COMSPEC=") || | 2959 | if (!end || is_prefixed_with(vp->var_text, "COMSPEC=") || |
2960 | is_prefixed_with(vp->var_text, "SYSTEMROOT=")) | 2960 | is_prefixed_with(vp->var_text, "SYSTEMROOT=")) |
2961 | continue; | 2961 | continue; |
2962 | if (!winxp) | 2962 | if (!on) |
2963 | bs_to_slash(end + 1); | 2963 | bs_to_slash(end + 1); |
2964 | else | 2964 | else |
2965 | slash_to_bs(end + 1); | 2965 | slash_to_bs(end + 1); |