[evolution-patches] Exchange Connector - patch for OOF
- From: Sushma Rai <rsushma novell com>
- To: Evolution Patches List <evolution-patches lists ximian com>
- Cc: Sarfraaz Ahmed <asarfraaz novell com>
- Subject: [evolution-patches] Exchange Connector - patch for OOF
- Date: Mon, 28 Feb 2005 17:21:25 +0530
Hi,
Attached is the patch for checking NULL OOF message.
Please review.
Thanks,
Sushma.
Index: storage/exchange-oof.c
===================================================================
RCS file: /cvs/gnome/evolution-exchange/storage/exchange-oof.c,v
retrieving revision 1.4
diff -u -p -r1.4 exchange-oof.c
--- storage/exchange-oof.c	27 Feb 2005 10:30:29 -0000	1.4
+++ storage/exchange-oof.c	28 Feb 2005 11:46:04 -0000
@@ -103,7 +103,7 @@ sync_oof_info (ExchangeAccount *account,
 							       "oof-info");
 					xmlSaveFile (oof_info_file, doc);
 					xmlFreeDoc (doc);
-					if (*message) {
+					if (message && *message) {
 						if (oof_message) {
 							g_free(*message);
 							*message = g_strdup (oof_message);
@@ -113,8 +113,7 @@ sync_oof_info (ExchangeAccount *account,
 			}
 			g_hash_table_destroy (oof_props);
 		}
-	}
-	else {
+	} else {
 		char *status;
 		GHashTable *oof_props;
 		xmlDoc *doc;
@@ -136,7 +135,7 @@ sync_oof_info (ExchangeAccount *account,
 		oof_props = g_hash_table_new (g_str_hash, g_str_equal);
 		g_hash_table_insert (oof_props, "sync-state", g_strdup("1"));
 		g_hash_table_insert (oof_props, "oof-state", status);
-		if (*message) {
+		if (message && *message) {
 			g_hash_table_insert (oof_props,
 					     "oof-message", 
 					     *message);
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]