summaryrefslogtreecommitdiff
path: root/interpret.h
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2019-01-08 21:20:17 +0200
committerArnold D. Robbins <arnold@skeeve.com>2019-01-08 21:20:17 +0200
commit995f235bdaa3a2b44d3e920f81a9f76373c56f58 (patch)
tree730670024001f2dbc010fa5c43c2dad2ad09bd13 /interpret.h
parent66c1625cc8cec979cfe265daaa2b55e29b956f83 (diff)
parent0e1fd064f13b220a129fc720607d3f62b55b3b19 (diff)
downloadgawk-feature/namespaces.tar.gz
Merge branch 'master' into feature/namespacesfeature/namespaces
Diffstat (limited to 'interpret.h')
-rw-r--r--interpret.h5
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);