aboutsummaryrefslogtreecommitdiffstats
path: root/camel/camel-pgp-context.c
diff options
context:
space:
mode:
Diffstat (limited to 'camel/camel-pgp-context.c')
-rw-r--r--camel/camel-pgp-context.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/camel/camel-pgp-context.c b/camel/camel-pgp-context.c
index cde9f76d25..3f377909f7 100644
--- a/camel/camel-pgp-context.c
+++ b/camel/camel-pgp-context.c
@@ -981,7 +981,8 @@ pgp_verify (CamelCipherContext *ctx, CamelCipherHash hash, CamelStream *istream,
}
if (diagnostics) {
- char *locale, *desc, *outbuf;
+ const char *locale;
+ char *desc, *outbuf;
size_t inlen, outlen;
iconv_t cd;
@@ -992,10 +993,9 @@ pgp_verify (CamelCipherContext *ctx, CamelCipherHash hash, CamelStream *istream,
locale = camel_charset_locale_name ();
if (!locale)
- locale = g_strdup ("iso-8859-1");
+ locale = "iso-8859-1";
cd = iconv_open ("UTF-8", locale);
- g_free (locale);
if (cd != (iconv_t) -1) {
const char *inbuf;