aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/groupwise-features
diff options
context:
space:
mode:
authorVeerapuram Varadhan <vvaradan@src.gnome.org>2005-08-12 15:42:10 +0800
committerVeerapuram Varadhan <vvaradan@src.gnome.org>2005-08-12 15:42:10 +0800
commitcc318fdef1a001a619bf1c3cb832f0e15fcb703d (patch)
treee79dd58e175e688e15aa8380e2bdf810efd915b8 /plugins/groupwise-features
parent6d469f61b98b5e453e319e26dd06eab0248b1880 (diff)
downloadgsoc2013-evolution-cc318fdef1a001a619bf1c3cb832f0e15fcb703d.tar.gz
gsoc2013-evolution-cc318fdef1a001a619bf1c3cb832f0e15fcb703d.tar.zst
gsoc2013-evolution-cc318fdef1a001a619bf1c3cb832f0e15fcb703d.zip
: Check "prd" for NULL, ALWAYS.
* proxy.c: (proxy_commit) : Check "prd" for NULL, ALWAYS. svn path=/trunk/; revision=30092
Diffstat (limited to 'plugins/groupwise-features')
-rw-r--r--plugins/groupwise-features/ChangeLog5
-rw-r--r--plugins/groupwise-features/proxy.c7
2 files changed, 10 insertions, 2 deletions
diff --git a/plugins/groupwise-features/ChangeLog b/plugins/groupwise-features/ChangeLog
index 8c129b5d1b..d0ceb35323 100644
--- a/plugins/groupwise-features/ChangeLog
+++ b/plugins/groupwise-features/ChangeLog
@@ -1,3 +1,8 @@
+2005-08-11 Veerapuram Varadhan <vvaradhan@novell.com>
+
+ * proxy.c:
+ (proxy_commit) : Check "prd" for NULL, ALWAYS.
+
2005-08-10 Sankar P <psankar@novell.com>
* proxy.c :
diff --git a/plugins/groupwise-features/proxy.c b/plugins/groupwise-features/proxy.c
index f338d904a3..ab48483dc8 100644
--- a/plugins/groupwise-features/proxy.c
+++ b/plugins/groupwise-features/proxy.c
@@ -537,10 +537,13 @@ proxy_commit (GtkWidget *button, EConfigHookItemFactoryData *data)
target_account = (EMConfigTargetAccount *)data->config->target;
account = target_account->account;
prd = g_object_get_data ((GObject *)account, "prd");
+
+ /* In case of non-GroupWise preferences edit, "prd" will be NULL. */
+ if (!prd || !prd->priv || !prd->priv->proxy_list)
+ return;
+
priv = prd->priv;
list_iter = priv->proxy_list;
- if (prd == NULL || list_iter == NULL)
- return;
for (;list_iter; list_iter = g_list_next (list_iter)) {
aclInstance = (proxyHandler *) list_iter->data;