[evolution-data-server] Bug #677886 - Runtime warning from ESourceAlarms



commit a513d998905f3b8327931c1154b4e80ba96e3b7b
Author: Milan Crha <mcrha redhat com>
Date:   Mon Jul 9 11:57:02 2012 +0200

    Bug #677886 - Runtime warning from ESourceAlarms

 libedataserver/e-source-alarms.c |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/libedataserver/e-source-alarms.c b/libedataserver/e-source-alarms.c
index f738c9a..9de9900 100644
--- a/libedataserver/e-source-alarms.c
+++ b/libedataserver/e-source-alarms.c
@@ -295,11 +295,14 @@ e_source_alarms_set_last_notified (ESourceAlarms *extension,
 {
 	g_return_if_fail (E_IS_SOURCE_ALARMS (extension));
 
+	if (last_notified && !*last_notified)
+		last_notified = NULL;
+
 	if (last_notified != NULL) {
 		GTimeVal time_val;
 
 		if (!g_time_val_from_iso8601 (last_notified, &time_val)) {
-			g_warning ("Invalid timestamp: %s", last_notified);
+			g_warning ("%s: Invalid timestamp: '%s'", G_STRFUNC, last_notified);
 			return;
 		}
 	}



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]