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.
This commit is contained in:
Werner Koch 2014-03-07 09:46:44 +01:00
parent 3032fc3ad7
commit a0fc42598f
1 changed files with 2 additions and 0 deletions

View File

@ -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)
{