[file-roller] no need to strip the password value



commit ac8cd7995fbfc85b0c2f139ff2d264deb7cbd251
Author: Paolo Bacchilega <paobac src gnome org>
Date:   Wed Sep 9 16:56:41 2009 +0200

    no need to strip the password value

 src/dlg-new.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/src/dlg-new.c b/src/dlg-new.c
index f0998c0..9fe3288 100644
--- a/src/dlg-new.c
+++ b/src/dlg-new.c
@@ -385,9 +385,8 @@ dlg_new_data_get_encrypt_header (DlgNewData *data)
 		return FALSE;
 
 	if (mime_type_desc[idx].capabilities & FR_COMMAND_CAN_ENCRYPT) {
-		char *password = (char*) gtk_entry_get_text (GTK_ENTRY (data->n_password_entry));
+		const char *password = gtk_entry_get_text (GTK_ENTRY (data->n_password_entry));
 		if (password != NULL) {
-			password = g_strstrip (password);
 			if (strcmp (password, "") != 0) {
 				if (mime_type_desc[idx].capabilities & FR_COMMAND_CAN_ENCRYPT_HEADER)
 					encrypt_header = gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (data->n_encrypt_header_checkbutton));



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]