diff options
author | Werner Koch <[email protected]> | 2021-03-28 08:38:42 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2021-03-28 08:38:42 +0000 |
commit | 18d884f8411a0ca263a8aa588bb49eb0dae9ee19 (patch) | |
tree | edb489c32022bc9ed0ab71a7144f2c016e4162d1 | |
parent | tests: Make sure the built keyboxd is used by the tests. (diff) | |
download | gnupg-18d884f8411a0ca263a8aa588bb49eb0dae9ee19.tar.gz gnupg-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
-rw-r--r-- | tools/gpgconf-comp.c | 3 |
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) { |