summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSeonah Moon <seonah1.moon@samsung.com>2016-06-08 13:53:40 +0900
committerSeonah Moon <seonah1.moon@samsung.com>2016-06-08 13:53:43 +0900
commit8220df52bc47a14ab63abf09cb41414afcbde678 (patch)
tree29bc6ba3d0c52bf8e60bd71dd55b6a00d3297ec5
parentf204ce5245d7b665d8a03cd42f3e2bb2ee2103be (diff)
downloadlibsoup-8220df52bc47a14ab63abf09cb41414afcbde678.tar.gz
libsoup-8220df52bc47a14ab63abf09cb41414afcbde678.tar.bz2
libsoup-8220df52bc47a14ab63abf09cb41414afcbde678.zip
Modified cache checking to remove unnecessary debugging log
Change-Id: I3aa1b45cba4fda72a2ee149af3ff757878103aed Signed-off-by: Seonah Moon <seonah1.moon@samsung.com>
-rwxr-xr-xlibsoup/soup-cache.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libsoup/soup-cache.c b/libsoup/soup-cache.c
index c679ea8c..11558ab4 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)