aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/exchange-operations
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/exchange-operations')
-rw-r--r--plugins/exchange-operations/ChangeLog6
-rw-r--r--plugins/exchange-operations/exchange-account-setup.c13
2 files changed, 15 insertions, 4 deletions
diff --git a/plugins/exchange-operations/ChangeLog b/plugins/exchange-operations/ChangeLog
index 351fcbc7fe..3a4255ba38 100644
--- a/plugins/exchange-operations/ChangeLog
+++ b/plugins/exchange-operations/ChangeLog
@@ -1,3 +1,9 @@
+2005-06-22 Sarfraaz Ahmed <asarfraaz@novell.com>
+
+ * exchange-account-setup.c : We no longer should be declaring the
+ global_config_listener as a static variable here. Also, added some
+ NULL checks to avoid crashes.
+
2005-06-15 Sushma Rai <rsushma@novell.com>
* exchange-account-setup.c (org_gnome_exchange_settings): Trying to
diff --git a/plugins/exchange-operations/exchange-account-setup.c b/plugins/exchange-operations/exchange-account-setup.c
index 06dc3fbb63..dd35d7dcbf 100644
--- a/plugins/exchange-operations/exchange-account-setup.c
+++ b/plugins/exchange-operations/exchange-account-setup.c
@@ -47,8 +47,6 @@
#include "mail/em-config.h"
-static ExchangeConfigListener *exchange_global_config_listener = NULL;
-
GtkWidget* org_gnome_exchange_settings(EPlugin *epl, EConfigHookItemFactoryData *data);
GtkWidget *org_gnome_exchange_owa_url(EPlugin *epl, EConfigHookItemFactoryData *data);
gboolean org_gnome_exchange_check_options(EPlugin *epl, EConfigHookPageCheckData *data);
@@ -140,15 +138,22 @@ btn_chpass_clicked (GtkButton *button, gpointer data)
/* FIXME: For now, we have only one account in the list.
Find a way to handle multiple accounts.
*/
+ if (!acclist)
+ return;
account = acclist->data;
old_password = exchange_account_get_password (account);
+ if (!old_password) {
+ printf ("could not fetch old password\n");
+ return;
+ }
+
g_print ("Current password is \"%s\"\n", old_password);
//new_password = exchange_get_new_password (old_password, TRUE);
exchange_account_set_password (account, old_password, new_password);
- g_free (old_password);
- g_free (new_password);
+// g_free (old_password);
+// g_free (new_password);
}
static void