summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>2014-03-07 09:46:44 +0100
committerWerner Koch <wk@gnupg.org>2014-03-07 16:06:40 +0100
commita0fc42598f51ef4a958fc3c2fed7f4b8df2da3fd (patch)
treea33e6d5f7335323238745fd6a83059d6c8f6b5d0 /tools
parentSilence several warnings when building under Windows. (diff)
downloadgnupg2-a0fc42598f51ef4a958fc3c2fed7f4b8df2da3fd.tar.xz
gnupg2-a0fc42598f51ef4a958fc3c2fed7f4b8df2da3fd.zip
w32: Fix a potential problem in gpgconf's gettext.
* tools/gpgconf-comp.c (my_dgettext) [USE_SIMPLE_GETTEXT]: Make sure to return something even DOMAIN is not given.
Diffstat (limited to 'tools')
-rw-r--r--tools/gpgconf-comp.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/gpgconf-comp.c b/tools/gpgconf-comp.c
index 490699439..6d366af70 100644
--- a/tools/gpgconf-comp.c
+++ b/tools/gpgconf-comp.c
@@ -1210,6 +1210,8 @@ my_dgettext (const char *domain, const char *msgid)
text = (char*)gettext (msgid);
return text ? text : msgid;
}
+ else
+ return msgid;
#elif defined(ENABLE_NLS)
if (domain)
{