summaryrefslogtreecommitdiffstats
path: root/src/itdb_artwork.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/itdb_artwork.c')
-rw-r--r--src/itdb_artwork.c4
1 files changed, 2 insertions, 2 deletions
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 <jcsjcs at users sourceforge net>
| 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;