[libgrss] feed-item: Don't preset publish time

commit 27c2e1b5a797d4d0e3b445890dc1a604d2676d87
Author: Carlos Garnacho <carlosg gnome org>
Date:   Fri Jul 24 00:54:45 2015 +0200

    feed-item: Don't preset publish time
    The pattern in the different format handlers is attempting to parse
    more recent versions and fall back to older ones, filling in data
    safely, this means that many set_publish_time() calls are preceded
    by get_publish_time() != 0 checks, which this initialization defeats.
    Signed-off-by: Carlos Garnacho <carlosg gnome org>
    Reviewed-by: Igor Gnatenko <ignatenko src gnome org>

 src/feed-item.c |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)
diff --git a/src/feed-item.c b/src/feed-item.c
index 2bf78c4..7665a46 100644
--- a/src/feed-item.c
+++ b/src/feed-item.c
@@ -136,7 +136,6 @@ grss_feed_item_new (GrssFeedChannel *parent)
        item = GRSS_FEED_ITEM (g_object_new (GRSS_FEED_ITEM_TYPE, NULL));
        item->priv->parent = parent;
-       item->priv->pub_time = time (NULL);
        return item;

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