aboutsummaryrefslogtreecommitdiffstats
path: root/common/i18n.c
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2008-05-27 12:03:50 +0000
committerWerner Koch <[email protected]>2008-05-27 12:03:50 +0000
commit138bf2dc1552fe8b8a1da6edcbd9fdcb747a73b9 (patch)
tree2dd4b1c251b4802660287496b4fd688bb4d7e0c5 /common/i18n.c
parentMinor bug fixes and document new gpg-connect-feature. (diff)
downloadgnupg-138bf2dc1552fe8b8a1da6edcbd9fdcb747a73b9.tar.gz
gnupg-138bf2dc1552fe8b8a1da6edcbd9fdcb747a73b9.zip
Fixed segv in gpg-agent (command marktrusted).
Replaced almost all free by xfree. Translation fixes.
Diffstat (limited to '')
-rw-r--r--common/i18n.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/common/i18n.c b/common/i18n.c
index 7db8e20c5..daa147faa 100644
--- a/common/i18n.c
+++ b/common/i18n.c
@@ -52,6 +52,7 @@ i18n_switchto_utf8 (void)
{
#ifdef USE_SIMPLE_GETTEXT
gettext_select_utf8 (1);
+ return NULL;
#elif defined(ENABLE_NLS)
char *orig_codeset = bind_textdomain_codeset (PACKAGE_GT, NULL);
# ifdef HAVE_LANGINFO_CODESET
@@ -81,6 +82,7 @@ void
i18n_switchback (char *saved_codeset)
{
#ifdef USE_SIMPLE_GETTEXT
+ (void)saved_codeset;
gettext_select_utf8 (0);
#elif defined(ENABLE_NLS)
if (saved_codeset)