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  <[EMAIL PROTECTED]>
+
+       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  <[EMAIL PROTECTED]>
 
        * 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.

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
gtkpod-cvs2 mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gtkpod-cvs2

Reply via email to