From 8220df52bc47a14ab63abf09cb41414afcbde678 Mon Sep 17 00:00:00 2001 From: Seonah Moon Date: Wed, 8 Jun 2016 13:53:40 +0900 Subject: [PATCH] Modified cache checking to remove unnecessary debugging log Change-Id: I3aa1b45cba4fda72a2ee149af3ff757878103aed Signed-off-by: Seonah Moon --- libsoup/soup-cache.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libsoup/soup-cache.c b/libsoup/soup-cache.c index c679ea8..11558ab 100755 --- a/libsoup/soup-cache.c +++ b/libsoup/soup-cache.c @@ -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) -- 2.7.4