From d13bb14e775c083ebb513cd853818d80daf7d2ce Mon Sep 17 00:00:00 2001 From: Jorg Schuler Date: Tue, 6 Dec 2005 13:22:35 +0000 Subject: * src/itdb_itunesdb.c: change g_assert to g_return_if_fail (don't terminate the application just because the iTunesDB was manipulated). * src/db-artwork-parser.c: change g_assert to g_return_if_fail (don't terminate the application just because the ArtworkDB was manipulated). * src/itdb_artwork.c: change g_assert to g_return_if_fail (don't terminate the application just because the ithmb file was manipulated). There's a number of g_asserts left in db-parse-context.c which don't catch programming errors but input errors. git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1188 f01d2545-417e-4e96-918e-98f8d0dbbcb6 --- src/itdb_artwork.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/itdb_artwork.c') diff --git a/src/itdb_artwork.c b/src/itdb_artwork.c index e5c5cbf..53a19f7 100644 --- a/src/itdb_artwork.c +++ b/src/itdb_artwork.c @@ -1,4 +1,4 @@ -/* Time-stamp: <2005-12-04 15:56:23 jcs> +/* Time-stamp: <2005-12-06 22:20:39 jcs> | | Copyright (C) 2002-2005 Jorg Schuler | Part of the gtkpod project. @@ -219,7 +219,7 @@ unpack_RGB_565 (guint16 *pixels, guint bytes_len) guchar *result; guint i; - g_assert (bytes_len < 2*(G_MAXUINT/3)); + g_return_val_if_fail (bytes_len < 2*(G_MAXUINT/3), NULL); result = g_malloc ((bytes_len/2) * 3); if (result == NULL) { return NULL; -- cgit