diff options
author | Werner Koch <[email protected]> | 2021-03-28 08:38:42 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2021-04-29 17:56:42 +0000 |
commit | a456303ae306fbfda0cf89ff41678d50c24bf6fc (patch) | |
tree | 3417439795a7eae7a2c2b0b3dc7c2bffb457c32f | |
parent | gpg: No warning in quiet mode for S2K mode 0. (diff) | |
download | gnupg-a456303ae306fbfda0cf89ff41678d50c24bf6fc.tar.gz gnupg-a456303ae306fbfda0cf89ff41678d50c24bf6fc.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
(cherry picked from commit 18d884f8411a0ca263a8aa588bb49eb0dae9ee19)
-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 d4b6d0a3f..3a7cd8487 100644 --- a/tools/gpgconf-comp.c +++ b/tools/gpgconf-comp.c @@ -1406,6 +1406,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) { |