aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--jnlib/ChangeLog5
-rw-r--r--jnlib/w32-gettext.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/jnlib/ChangeLog b/jnlib/ChangeLog
index e2cffe6d7..8671f154e 100644
--- a/jnlib/ChangeLog
+++ b/jnlib/ChangeLog
@@ -1,3 +1,8 @@
+2008-10-29 Werner Koch <[email protected]>
+
+ * w32-gettext.c (gettext): Return if no domain is loaded.
+ Reported by Tom Pegios.
+
2008-10-28 Werner Koch <[email protected]>
* w32-gettext.c (gettext): Try the binary search if the string was
diff --git a/jnlib/w32-gettext.c b/jnlib/w32-gettext.c
index 5ff25439f..ba1d65265 100644
--- a/jnlib/w32-gettext.c
+++ b/jnlib/w32-gettext.c
@@ -1603,7 +1603,7 @@ gettext( const char *msgid )
size_t top, bottom;
if (!(domain = the_domain))
- goto not_found;
+ return msgid;
/* Locate the MSGID and its translation. */
if (domain->hash_size > 2 && domain->hash_tab)