From 1d7725b0a6063be671a7f3b2821fa00c15085d8c Mon Sep 17 00:00:00 2001 From: Todd Zullinger Date: Wed, 23 May 2007 15:30:36 +0000 Subject: fix a potential crasher (Raymond Walsh) git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1438 f01d2545-417e-4e96-918e-98f8d0dbbcb6 --- ChangeLog | 5 +++++ src/itdb_itunesdb.c | 6 +++--- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index 6df5b3e..590f5af 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2007-05-23 Todd Zullinger + + * src/itdb_itunesdb.c (get_playlist): fix a potential crasher + (Raymond Walsh) + 2007-05-19 Jorg Schuler * src/itdb_itunesdb.c (playcounts_init): C&P error stat'ing the diff --git a/src/itdb_itunesdb.c b/src/itdb_itunesdb.c index d616829..c715fae 100644 --- a/src/itdb_itunesdb.c +++ b/src/itdb_itunesdb.c @@ -2103,13 +2103,13 @@ static glong get_playlist (FImport *fimp, glong mhyp_seek) { /* we did not read a valid mhod TITLE header -> */ /* we simply make up our own name */ if (itdb_playlist_is_mpl (plitem)) - plitem->name = _("Master-PL"); + plitem->name = g_strdup (_("Master-PL")); else { if (itdb_playlist_is_podcasts (plitem)) - plitem->name = _("Podcasts"); + plitem->name = g_strdup (_("Podcasts")); else - plitem->name = _("Playlist"); + plitem->name = g_strdup (_("Playlist")); } } -- cgit