aboutsummaryrefslogtreecommitdiffstats
path: root/interpret.h
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2017-01-27 12:05:36 +0200
committerArnold D. Robbins <arnold@skeeve.com>2017-01-27 12:05:36 +0200
commitc0c69f02e4d300aebf91516a1a521828f6885b26 (patch)
tree821a5e8819911b222071b9710bca5b07c17e7795 /interpret.h
parentd6fe1f907f495863c3ff6875f9d308e5d08ee0ff (diff)
downloadegawk-c0c69f02e4d300aebf91516a1a521828f6885b26.tar.gz
egawk-c0c69f02e4d300aebf91516a1a521828f6885b26.tar.bz2
egawk-c0c69f02e4d300aebf91516a1a521828f6885b26.zip
Fix assignment from gensub to $0.
Diffstat (limited to 'interpret.h')
-rw-r--r--interpret.h5
1 files changed, 1 insertions, 4 deletions
diff --git a/interpret.h b/interpret.h
index 15d77522..bb7cba96 100644
--- a/interpret.h
+++ b/interpret.h
@@ -26,10 +26,7 @@
#define UNFIELD(l, r) \
{ \
/* if was a field, turn it into a var */ \
- if ((r->flags & FIELD) == 0) { \
- l = r; \
- } else if (r->valref == 1) { \
- r->flags &= ~FIELD; \
+ if ((r->flags & FIELD) == 0 || r->valref == 1) { \
l = r; \
} else { \
l = dupnode(r); \