aboutsummaryrefslogtreecommitdiff
path: root/shell/ash.c
diff options
context:
space:
mode:
Diffstat (limited to 'shell/ash.c')
-rw-r--r--shell/ash.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/shell/ash.c b/shell/ash.c
index d63acc2c8..0878237bf 100644
--- a/shell/ash.c
+++ b/shell/ash.c
@@ -5980,7 +5980,7 @@ subevalvar(char *p, char *str, int strloc, int subtype,
5980 5980
5981 /* We must adjust the length by the number of escapes we find. */ 5981 /* We must adjust the length by the number of escapes we find. */
5982 for (ptr = startp; ptr < (str - 1); ptr++) { 5982 for (ptr = startp; ptr < (str - 1); ptr++) {
5983 if(*ptr == CTLESC) { 5983 if (*ptr == CTLESC) {
5984 len--; 5984 len--;
5985 ptr++; 5985 ptr++;
5986 } 5986 }
@@ -6056,7 +6056,7 @@ subevalvar(char *p, char *str, int strloc, int subtype,
6056 if (subtype == VSREPLACE || subtype == VSREPLACEALL) { 6056 if (subtype == VSREPLACE || subtype == VSREPLACEALL) {
6057 char *idx, *end, *restart_detect; 6057 char *idx, *end, *restart_detect;
6058 6058
6059 if(!repl) { 6059 if (!repl) {
6060 repl = parse_sub_pattern(str, varflags & VSQUOTE); 6060 repl = parse_sub_pattern(str, varflags & VSQUOTE);
6061 if (!repl) 6061 if (!repl)
6062 repl = &null; 6062 repl = &null;