diff options
| author | Jorg Schuler <jcsjcs@users.sourceforge.net> | 2005-12-06 13:22:35 +0000 |
|---|---|---|
| committer | Jorg Schuler <jcsjcs@users.sourceforge.net> | 2005-12-06 13:22:35 +0000 |
| commit | d13bb14e775c083ebb513cd853818d80daf7d2ce (patch) | |
| tree | 6638c5e468159bc2db0ef56ed16c780f55d95a4f /src/itdb_artwork.c | |
| parent | af5b87fa2fca1541a36baa4433bc92c595537468 (diff) | |
| download | libgpod-d13bb14e775c083ebb513cd853818d80daf7d2ce.tar.gz libgpod-d13bb14e775c083ebb513cd853818d80daf7d2ce.tar.xz libgpod-d13bb14e775c083ebb513cd853818d80daf7d2ce.zip | |
* 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
Diffstat (limited to 'src/itdb_artwork.c')
| -rw-r--r-- | src/itdb_artwork.c | 4 |
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; |
