[libsoup/cache] soup-cache: change a g_assert for g_warn_if_fail



commit 54a00bd9dbd8591cbd9ebdfbe84de6c94c1e6633
Author: Xan Lopez <xan gnome org>
Date:   Tue Aug 4 14:42:58 2009 +0300

    soup-cache: change a g_assert for g_warn_if_fail
    
    We prefer to not crash by default, allowing the user to enable
    crash-on-warning for debugging purposes.

 libsoup/soup-cache.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/libsoup/soup-cache.c b/libsoup/soup-cache.c
index 833e2c4..1db130b 100644
--- a/libsoup/soup-cache.c
+++ b/libsoup/soup-cache.c
@@ -361,7 +361,7 @@ close_ready_cb (GObject *source, GAsyncResult *result, SoupCacheWritingFixture *
 	SoupCache *cache = fixture->cache;
 	GOutputStream *stream = G_OUTPUT_STREAM (source);
 
-	g_assert (entry->error || entry->pos == entry->length);
+	g_warn_if_fail (entry->error || entry->pos == entry->length);
 
 	/* FIXME: what do we do on error ? */
 



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