diff options
Diffstat (limited to 'editors/awk.c')
-rw-r--r-- | editors/awk.c | 3 |
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) |