aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--editors/awk.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/editors/awk.c b/editors/awk.c
index af8958925..c0e1a71fe 100644
--- a/editors/awk.c
+++ b/editors/awk.c
@@ -2670,8 +2670,12 @@ extern int awk_main(int argc, char **argv) {
2670 for (envp=environ; *envp; envp++) { 2670 for (envp=environ; *envp; envp++) {
2671 s = bb_xstrdup(*envp); 2671 s = bb_xstrdup(*envp);
2672 s1 = strchr(s, '='); 2672 s1 = strchr(s, '=');
2673 if (!s1) {
2674 goto keep_going;
2675 }
2673 *(s1++) = '\0'; 2676 *(s1++) = '\0';
2674 setvar_u(findvar(iamarray(V[ENVIRON]), s), s1); 2677 setvar_u(findvar(iamarray(V[ENVIRON]), s), s1);
2678keep_going:
2675 free(s); 2679 free(s);
2676 } 2680 }
2677 2681