diff options
author | Arnold D. Robbins <arnold@skeeve.com> | 2019-01-08 21:20:17 +0200 |
---|---|---|
committer | Arnold D. Robbins <arnold@skeeve.com> | 2019-01-08 21:20:17 +0200 |
commit | 995f235bdaa3a2b44d3e920f81a9f76373c56f58 (patch) | |
tree | 730670024001f2dbc010fa5c43c2dad2ad09bd13 /interpret.h | |
parent | 66c1625cc8cec979cfe265daaa2b55e29b956f83 (diff) | |
parent | 0e1fd064f13b220a129fc720607d3f62b55b3b19 (diff) | |
download | gawk-feature/namespaces.tar.gz |
Merge branch 'master' into feature/namespacesfeature/namespaces
Diffstat (limited to 'interpret.h')
-rw-r--r-- | interpret.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/interpret.h b/interpret.h index 8560d9e8..82329e85 100644 --- a/interpret.h +++ b/interpret.h @@ -156,7 +156,10 @@ top: orig = m->stptr; trans = dgettext(TEXTDOMAIN, orig); m->stptr[m->stlen] = save; - m = make_string(trans, strlen(trans)); + if (trans != orig) // got a translation + m = make_string(trans, strlen(trans)); + else + UPREF(m); } else UPREF(m); PUSH(m); |