diff options
Diffstat (limited to 'editors')
-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 079d0bde5..728ee8685 100644 --- a/editors/awk.c +++ b/editors/awk.c | |||
@@ -3128,6 +3128,9 @@ static var *evaluate(node *op, var *res) | |||
3128 | 3128 | ||
3129 | case XC( OC_MOVE ): | 3129 | case XC( OC_MOVE ): |
3130 | debug_printf_eval("MOVE\n"); | 3130 | debug_printf_eval("MOVE\n"); |
3131 | /* make sure that we never return a temp var */ | ||
3132 | if (L.v == TMPVAR0) | ||
3133 | L.v = res; | ||
3131 | /* if source is a temporary string, jusk relink it to dest */ | 3134 | /* if source is a temporary string, jusk relink it to dest */ |
3132 | if (R.v == TMPVAR1 | 3135 | if (R.v == TMPVAR1 |
3133 | && !(R.v->type & VF_NUMBER) | 3136 | && !(R.v->type & VF_NUMBER) |