diff options
author | Werner Koch <wk@gnupg.org> | 2021-03-28 10:38:42 +0200 |
---|---|---|
committer | Werner Koch <wk@gnupg.org> | 2021-03-28 10:38:42 +0200 |
commit | 18d884f8411a0ca263a8aa588bb49eb0dae9ee19 (patch) | |
tree | edb489c32022bc9ed0ab71a7144f2c016e4162d1 /tools/gpgconf-comp.c | |
parent | tests: Make sure the built keyboxd is used by the tests. (diff) | |
download | gnupg2-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.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) { |