Modified cache checking to remove unnecessary debugging log 02/73402/1
authorSeonah Moon <seonah1.moon@samsung.com>
Wed, 8 Jun 2016 04:53:40 +0000 (13:53 +0900)
committerSeonah Moon <seonah1.moon@samsung.com>
Wed, 8 Jun 2016 04:53:43 +0000 (13:53 +0900)
Change-Id: I3aa1b45cba4fda72a2ee149af3ff757878103aed
Signed-off-by: Seonah Moon <seonah1.moon@samsung.com>
libsoup/soup-cache.c

index c679ea8..11558ab 100755 (executable)
@@ -1944,7 +1944,8 @@ void soup_cache_entry_set_content_type (SoupSession *session, SoupMessage *msg,
        SoupCacheEntry *entry;
        SoupCache *cache = (SoupCache *)soup_session_get_feature (session, SOUP_TYPE_CACHE);
 
-       g_return_if_fail (SOUP_IS_CACHE (cache));
+       if (!cache)
+               return;
 
        entry = soup_cache_entry_lookup (cache, msg);
        if (entry)