[gnome-documents/gnome-3-4] utils: don't call g_time_val_from_iso8601 with a NULL string
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-documents/gnome-3-4] utils: don't call g_time_val_from_iso8601 with a NULL string
- Date: Mon, 14 May 2012 19:09:00 +0000 (UTC)
commit 01cbd49c1ae8efc75d150c588c71b52b83a685c5
Author: Cosimo Cecchi <cosimoc gnome org>
Date: Mon May 14 14:32:34 2012 -0400
utils: don't call g_time_val_from_iso8601 with a NULL string
src/lib/gd-utils.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/src/lib/gd-utils.c b/src/lib/gd-utils.c
index 6b209ac..5c38939 100644
--- a/src/lib/gd-utils.c
+++ b/src/lib/gd-utils.c
@@ -409,7 +409,10 @@ gd_time_val_from_iso8601 (const gchar *string,
GTimeVal *timeval)
{
if (string == NULL)
- g_get_current_time (timeval);
+ {
+ g_get_current_time (timeval);
+ return TRUE;
+ }
return g_time_val_from_iso8601 (string, timeval);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]