Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'gettext.h')
-rw-r--r--gettext.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/gettext.h b/gettext.h
index e44d8bcda9..7671d09d04 100644
--- a/gettext.h
+++ b/gettext.h
@@ -49,6 +49,8 @@ extern int use_gettext_poison(void);
static inline FORMAT_PRESERVING(1) const char *_(const char *msgid)
{
+ if (!*msgid)
+ return "";
return use_gettext_poison() ? "# GETTEXT POISON #" : gettext(msgid);
}