[file-roller] no need to strip the password value
- From: Paolo Bacchilega <paobac src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [file-roller] no need to strip the password value
- Date: Mon, 14 Sep 2009 07:10:59 +0000 (UTC)
commit 07690b388a856ae495716e972c5f59a3d06c7ecf
Author: Paolo Bacchilega <paobac src gnome org>
Date: Wed Sep 9 16:29:46 2009 +0200
no need to strip the password value
[bug #589920]
src/dlg-batch-add.c | 5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/src/dlg-batch-add.c b/src/dlg-batch-add.c
index 72586a5..c5ed4b9 100644
--- a/src/dlg-batch-add.c
+++ b/src/dlg-batch-add.c
@@ -104,11 +104,10 @@ set_archive_options (DialogData *data)
idx = gtk_combo_box_get_active (GTK_COMBO_BOX (data->a_archive_type_combo_box));
if (mime_type_desc[data->supported_types[idx]].capabilities & FR_COMMAND_CAN_ENCRYPT) {
- char *pwd;
+ const char *pwd;
- pwd = (char*) gtk_entry_get_text (GTK_ENTRY (data->a_password_entry));
+ pwd = gtk_entry_get_text (GTK_ENTRY (data->a_password_entry));
if (pwd != NULL) {
- pwd = g_strstrip (pwd);
if (strcmp (pwd, "") != 0) {
fr_window_set_password (data->window, pwd);
if (mime_type_desc[data->supported_types[idx]].capabilities & FR_COMMAND_CAN_ENCRYPT_HEADER)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]