Revision: 2157
http://gtkpod.svn.sourceforge.net/gtkpod/?rev=2157&view=rev
Author: jcsjcs
Date: 2008-12-07 11:46:05 +0000 (Sun, 07 Dec 2008)
Log Message:
-----------
* itdb_itunesdb.c (jump_table_letter): don't terminate when
an invalid utf8 string is encountered (replaced g_assert() with
g_return_val_if_fail()).
Modified Paths:
--------------
libgpod/trunk/ChangeLog
libgpod/trunk/src/itdb_itunesdb.c
Modified: libgpod/trunk/ChangeLog
===================================================================
--- libgpod/trunk/ChangeLog 2008-12-07 11:39:42 UTC (rev 2156)
+++ libgpod/trunk/ChangeLog 2008-12-07 11:46:05 UTC (rev 2157)
@@ -1,3 +1,9 @@
+2008-12-07 Jorg Schuler <jcsjcs at users.sourceforge.net>
+
+ * itdb_itunesdb.c (jump_table_letter): don't terminate when
+ an invalid utf8 string is encountered (replaced g_assert() with
+ g_return_val_if_fail()).
+
2008-11-30 Jorg Schuler <jcsjcs at users.sourceforge.net>
* configure.ac: don't add "-Wall" to CFLAGS
Modified: libgpod/trunk/src/itdb_itunesdb.c
===================================================================
--- libgpod/trunk/src/itdb_itunesdb.c 2008-12-07 11:39:42 UTC (rev 2156)
+++ libgpod/trunk/src/itdb_itunesdb.c 2008-12-07 11:46:05 UTC (rev 2157)
@@ -3775,7 +3775,7 @@
gboolean found_alnum_chars = FALSE;
g_return_val_if_fail (p != NULL, '0');
- g_assert (g_utf8_validate (p, -1, NULL));
+ g_return_val_if_fail (g_utf8_validate (p, -1, NULL), '0');
while (*p != '\0') {
chr = g_utf8_get_char (p);
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you. Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
_______________________________________________
gtkpod-cvs2 mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gtkpod-cvs2