From: Colin Leroy Date: Thu, 11 Feb 2016 10:22:47 +0000 (+0100) Subject: Forgot to memset. We should add an helper function for this. X-Git-Tag: 3.14.0~169 X-Git-Url: http://git.claws-mail.org/?p=claws.git;a=commitdiff_plain;h=1707a23f562534e9b9d2a092e28e451baf8acff2 Forgot to memset. We should add an helper function for this. --- diff --git a/src/prefs_gtk.c b/src/prefs_gtk.c index f04a5e534..3d6ddec98 100644 --- a/src/prefs_gtk.c +++ b/src/prefs_gtk.c @@ -690,6 +690,9 @@ void prefs_set_entry(PrefParam *pparam) decrypted_pass = password_decrypt(*str, NULL); gtk_entry_set_text(GTK_ENTRY(*pparam->widget), (decrypted_pass != NULL ? decrypted_pass : "")); + if (decrypted_pass != NULL) { + memset(decrypted_pass, 0, strlen(decrypted_pass)); + } g_free(decrypted_pass); break; default: