diff options
author | Arnold D. Robbins <arnold@skeeve.com> | 2019-01-08 21:18:03 +0200 |
---|---|---|
committer | Arnold D. Robbins <arnold@skeeve.com> | 2019-01-08 21:18:03 +0200 |
commit | 0e1fd064f13b220a129fc720607d3f62b55b3b19 (patch) | |
tree | cded164713083b6edaec2ba72fe5cb23d1661278 /interpret.h | |
parent | 683e1c07a179096aa4bd69000c817ca707019456 (diff) | |
parent | a5dd80bb2b2ad33e0397b48d0ab2b220ed040f9e (diff) | |
download | egawk-0e1fd064f13b220a129fc720607d3f62b55b3b19.tar.gz egawk-0e1fd064f13b220a129fc720607d3f62b55b3b19.tar.bz2 egawk-0e1fd064f13b220a129fc720607d3f62b55b3b19.zip |
Merge branch 'gawk-4.2-stable'
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 6a1a08b4..1451f683 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); |