diff options
author | teuf <teuf@f01d2545-417e-4e96-918e-98f8d0dbbcb6> | 2008-01-29 23:33:29 +0000 |
---|---|---|
committer | teuf <teuf@f01d2545-417e-4e96-918e-98f8d0dbbcb6> | 2008-01-29 23:33:29 +0000 |
commit | 8bf5a5408271c370e90e4dac472d933920a75fcb (patch) | |
tree | 46f81e1f3bfcc6b37d752e872ed3d1b6e02824f9 | |
parent | 917c8a8ca6f05556cff70afbc6a9fd8f0e291da6 (diff) | |
download | libgpod-8bf5a5408271c370e90e4dac472d933920a75fcb.tar.gz libgpod-8bf5a5408271c370e90e4dac472d933920a75fcb.tar.xz libgpod-8bf5a5408271c370e90e4dac472d933920a75fcb.zip |
Make sure the fields we print aren't NULL
git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1943 f01d2545-417e-4e96-918e-98f8d0dbbcb6
-rw-r--r-- | ChangeLog | 8 | ||||
-rw-r--r-- | tests/test-ls.c | 4 |
2 files changed, 11 insertions, 1 deletions
@@ -1,3 +1,11 @@ +2008-30-01 Christophe Fergeau <teuf@gnome.org> + + 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 <teuf@gnome.org> * src/itdb_itunesdb.c: don't use itdb_filename_ipod2fs to generate diff --git a/tests/test-ls.c b/tests/test-ls.c index 1488da6..ed881e7 100644 --- a/tests/test-ls.c +++ b/tests/test-ls.c @@ -70,7 +70,9 @@ static void 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); } |