summaryrefslogtreecommitdiffstats
path: root/tools/gpgconf-comp.c
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>2021-03-28 10:38:42 +0200
committerWerner Koch <wk@gnupg.org>2021-03-28 10:38:42 +0200
commit18d884f8411a0ca263a8aa588bb49eb0dae9ee19 (patch)
treeedb489c32022bc9ed0ab71a7144f2c016e4162d1 /tools/gpgconf-comp.c
parenttests: Make sure the built keyboxd is used by the tests. (diff)
downloadgnupg2-18d884f8411a0ca263a8aa588bb49eb0dae9ee19.tar.xz
gnupg2-18d884f8411a0ca263a8aa588bb49eb0dae9ee19.zip
gpgconf: Do not i18n an empty string to the PO files meta data.
* tools/gpgconf-comp.c (my_dgettext): Ignore empty strings. -- GnuPG-bug-id: 5363
Diffstat (limited to 'tools/gpgconf-comp.c')
-rw-r--r--tools/gpgconf-comp.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/gpgconf-comp.c b/tools/gpgconf-comp.c
index ba950c28b..7a39ccc02 100644
--- a/tools/gpgconf-comp.c
+++ b/tools/gpgconf-comp.c
@@ -1027,6 +1027,9 @@ gc_component_reload (int component)
static const char *
my_dgettext (const char *domain, const char *msgid)
{
+ if (!msgid || !*msgid)
+ return msgid; /* Shortcut form "" which has the PO files meta data. */
+
#ifdef USE_SIMPLE_GETTEXT
if (domain)
{