summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIago Toral <itoral@igalia.com>2010-02-19 10:50:49 +0100
committerIago Toral <itoral@igalia.com>2010-02-19 10:50:49 +0100
commit2e8dc5401bd562dc888fb34de6f47f3dbbac7877 (patch)
tree13e6215af0afccb6ae21f2dd62c6e282d058ed3e
parent6b46a81754c3e759e584e99f5db0c4a9f7ab155e (diff)
downloadgrilo-plugins-2e8dc5401bd562dc888fb34de6f47f3dbbac7877.tar.gz
[podcasts] Fixed critical warning when parsing feeds for the first time.
-rw-r--r--src/podcasts/grl-podcasts.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/podcasts/grl-podcasts.c b/src/podcasts/grl-podcasts.c
index d5b2745..bfb8277 100644
--- a/src/podcasts/grl-podcasts.c
+++ b/src/podcasts/grl-podcasts.c
@@ -1082,7 +1082,7 @@ produce_podcast_contents (OperationSpec *os)
/* Check if we have to refresh the podcast */
lr_str = (gchar *) sqlite3_column_text (sql_stmt, PODCAST_LAST_REFRESHED);
g_debug ("Podcast last-refreshed: '%s'", lr_str);
- g_time_val_from_iso8601 (lr_str, &lr);
+ g_time_val_from_iso8601 (lr_str ? lr_str : "", &lr);
g_get_current_time (&now);
now.tv_sec -= CACHE_DURATION;
if (now.tv_sec >= lr.tv_sec) {