[evolution-data-server] Bug #669238 Warning while creating appointments/meetings
- From: Punit Jain <jpunit src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-data-server] Bug #669238 Warning while creating appointments/meetings
- Date: Fri, 3 Feb 2012 07:06:15 +0000 (UTC)
commit b341abf80972d510027d595fc79a7bff1de97c47
Author: Punit Jain <jpunit novell com>
Date: Fri Feb 3 12:32:56 2012 +0530
Bug #669238 Warning while creating appointments/meetings
calendar/libedata-cal/e-cal-backend-file-store.c | 14 +++++++-------
1 files changed, 7 insertions(+), 7 deletions(-)
---
diff --git a/calendar/libedata-cal/e-cal-backend-file-store.c b/calendar/libedata-cal/e-cal-backend-file-store.c
index da250b8..8abd490 100644
--- a/calendar/libedata-cal/e-cal-backend-file-store.c
+++ b/calendar/libedata-cal/e-cal-backend-file-store.c
@@ -318,9 +318,11 @@ e_cal_backend_file_store_put_timezone (ECalBackendStore *store,
{
ECalBackendFileStore *fstore = E_CAL_BACKEND_FILE_STORE (store);
ECalBackendFileStorePrivate *priv;
- gboolean ret_val = FALSE;
icaltimezone *copy;
+ g_return_val_if_fail (fstore != NULL, FALSE);
+ g_return_val_if_fail (zone != NULL, FALSE);
+
priv = fstore->priv;
g_static_rw_lock_writer_lock (&priv->lock);
@@ -328,14 +330,12 @@ e_cal_backend_file_store_put_timezone (ECalBackendStore *store,
g_hash_table_insert (priv->timezones, g_strdup (icaltimezone_get_tzid ((icaltimezone *) zone)), copy);
g_static_rw_lock_writer_unlock (&priv->lock);
- if (ret_val) {
- priv->dirty = TRUE;
+ priv->dirty = TRUE;
- if (!priv->freeze_changes)
- save_cache (fstore);
- }
+ if (!priv->freeze_changes)
+ save_cache (fstore);
- return ret_val;
+ return TRUE;
}
static gboolean
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]