diff options
Diffstat (limited to 'smime/lib/e-pkcs12.c')
-rw-r--r-- | smime/lib/e-pkcs12.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/smime/lib/e-pkcs12.c b/smime/lib/e-pkcs12.c index b6001382ed..b2e8e16698 100644 --- a/smime/lib/e-pkcs12.c +++ b/smime/lib/e-pkcs12.c @@ -224,11 +224,12 @@ prompt_for_password (char *title, char *prompt, SECItem *pwd) if (passwd) { size_t len = strlen (passwd); const char *inptr = passwd; - char *outptr = pwd->data; + char *outptr; gunichar2 c; SECITEM_AllocItem(NULL, pwd, sizeof (gunichar2) * (len + 1)); + outptr = pwd->data; while (inptr && (c = (gunichar2) (g_utf8_get_char (inptr) & 0xffff))) { inptr = g_utf8_next_char (inptr); c = GUINT16_TO_BE (c); |