From a456303ae306fbfda0cf89ff41678d50c24bf6fc Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Sun, 28 Mar 2021 10:38:42 +0200 Subject: 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) --- tools/gpgconf-comp.c | 3 +++ 1 file changed, 3 insertions(+) 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) { -- cgit v1.2.3