From: <te...@us...> - 2008-01-29 23:33:27
|
Revision: 1943 http://gtkpod.svn.sourceforge.net/gtkpod/?rev=1943&view=rev Author: teuf Date: 2008-01-29 15:33:29 -0800 (Tue, 29 Jan 2008) Log Message: ----------- Make sure the fields we print aren't NULL Modified Paths: -------------- libgpod/trunk/ChangeLog libgpod/trunk/tests/test-ls.c Modified: libgpod/trunk/ChangeLog =================================================================== --- libgpod/trunk/ChangeLog 2008-01-29 23:14:45 UTC (rev 1942) +++ libgpod/trunk/ChangeLog 2008-01-29 23:33:29 UTC (rev 1943) @@ -1,3 +1,11 @@ +2008-30-01 Christophe Fergeau <te...@gn...> + + Patch by Martin Aumueller + + * tests/test-ls.c: make sure the various fields we are trying to + print aren't NULL, this fixes a crash that was observed with + iphones + 2007-11-15 Christophe Fergeau <te...@gn...> * src/itdb_itunesdb.c: don't use itdb_filename_ipod2fs to generate Modified: libgpod/trunk/tests/test-ls.c =================================================================== --- libgpod/trunk/tests/test-ls.c 2008-01-29 23:14:45 UTC (rev 1942) +++ libgpod/trunk/tests/test-ls.c 2008-01-29 23:33:29 UTC (rev 1943) @@ -70,7 +70,9 @@ display_track (Itdb_Track *track, const char *prefix) { g_print ("%s%s - %s - %s\n", prefix, - track->artist, track->album, track->title); + track->artist ? track->artist : "(null)", + track->album ? track->album : "(null)", + track->title ? track->title : "(null)"); g_print ("%s\t%s\n", prefix, track->ipod_path); } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |