[accounts-dialog] Remove overzealous memory cleansing
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [accounts-dialog] Remove overzealous memory cleansing
- Date: Tue, 30 Mar 2010 12:49:23 +0000 (UTC)
commit 99c5d85a637f46f682e5d4a4eccd706a5f49fd8f
Author: Matthias Clasen <mclasen redhat com>
Date: Tue Mar 30 08:46:02 2010 -0400
Remove overzealous memory cleansing
While not doing any actual harm here, zeroing out a passed
const char * is not exactly kosher, and is not really necessary
here either, since it comes from gtk_entry_get_text(), and
GTK+ already takes care of cleansing the entry buffer when we
reset the entry contents to "", which we do right afterwards.
src/um-user.c | 2 --
1 files changed, 0 insertions(+), 2 deletions(-)
---
diff --git a/src/um-user.c b/src/um-user.c
index 8d7e3c2..5b7bdf7 100644
--- a/src/um-user.c
+++ b/src/um-user.c
@@ -999,8 +999,6 @@ um_user_set_password (UmUser *user,
g_error_free (error);
}
}
-
- memset (password, 0, strlen (password));
}
gboolean
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]