← Commit list

0ba80e4fa

Denys Vlasenko
Denys Vlasenko
2017-07-17
SUCCESS Duration: 142s

Subject

hush: small fix to last commit

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

shell/hush.c+1 -1
@@ -5736,7 +5736,7 @@ static NOINLINE const char *expand_one_var(char **to_be_freed_pp, char *arg, cha
if (len < 0) /* bash compat */
die_if_script("%s: substring expression < 0", var);
}
- if (len == 0 || !val || beg >= strlen(val)) {
+ if (len <= 0 || !val || beg >= strlen(val)) {
arith_err:
val = NULL;
} else {