summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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)