aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSarfraaz Ahmed <asarfraaz@novell.com>2005-06-23 13:29:23 +0800
committerAhmed Sarfraaz <sarfraaz@src.gnome.org>2005-06-23 13:29:23 +0800
commitdbbee50d3d566e217f77b217d27bcd228d7a9d51 (patch)
treea0b513dc03eba20de0751cd322823ad2c2c1ac32
parent7046702f96a51347a8566134c58d4d959371dc09 (diff)
downloadgsoc2013-evolution-dbbee50d3d566e217f77b217d27bcd228d7a9d51.tar
gsoc2013-evolution-dbbee50d3d566e217f77b217d27bcd228d7a9d51.tar.gz
gsoc2013-evolution-dbbee50d3d566e217f77b217d27bcd228d7a9d51.tar.bz2
gsoc2013-evolution-dbbee50d3d566e217f77b217d27bcd228d7a9d51.tar.lz
gsoc2013-evolution-dbbee50d3d566e217f77b217d27bcd228d7a9d51.tar.xz
gsoc2013-evolution-dbbee50d3d566e217f77b217d27bcd228d7a9d51.tar.zst
gsoc2013-evolution-dbbee50d3d566e217f77b217d27bcd228d7a9d51.zip
We no longer should be declaring the global_config_listener as a static
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. svn path=/trunk/; revision=29573
-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