aboutsummaryrefslogtreecommitdiff
path: root/editors/awk.c
diff options
context:
space:
mode:
authorRon Yorston <rmy@pobox.com>2022-10-12 10:43:26 +0100
committerRon Yorston <rmy@pobox.com>2022-10-12 10:43:26 +0100
commit49c6f079acb4edae84b4496bd941cdbb5048ba01 (patch)
treeac54ecaad45050f7bfe274a11db29882aa32a9a8 /editors/awk.c
parenta55cf07365ec2ff51749a77e09ae9edac79a99fe (diff)
parentc8c1fcdba163f264a503380bc63485aacd09214c (diff)
downloadbusybox-w32-49c6f079acb4edae84b4496bd941cdbb5048ba01.tar.gz
busybox-w32-49c6f079acb4edae84b4496bd941cdbb5048ba01.tar.bz2
busybox-w32-49c6f079acb4edae84b4496bd941cdbb5048ba01.zip
Merge branch 'busybox' into merge
Diffstat (limited to 'editors/awk.c')
-rw-r--r--editors/awk.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/editors/awk.c b/editors/awk.c
index 9b4d4dc3d..eedb7aa84 100644
--- a/editors/awk.c
+++ b/editors/awk.c
@@ -3147,6 +3147,9 @@ static var *evaluate(node *op, var *res)
3147 3147
3148 case XC( OC_MOVE ): 3148 case XC( OC_MOVE ):
3149 debug_printf_eval("MOVE\n"); 3149 debug_printf_eval("MOVE\n");
3150 /* make sure that we never return a temp var */
3151 if (L.v == TMPVAR0)
3152 L.v = res;
3150 /* if source is a temporary string, jusk relink it to dest */ 3153 /* if source is a temporary string, jusk relink it to dest */
3151 if (R.v == TMPVAR1 3154 if (R.v == TMPVAR1
3152 && !(R.v->type & VF_NUMBER) 3155 && !(R.v->type & VF_NUMBER)