summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTodd Zullinger <tmzullinger@users.sourceforge.net>2007-05-23 15:30:36 +0000
committerTodd Zullinger <tmzullinger@users.sourceforge.net>2007-05-23 15:30:36 +0000
commite59cd1d7ea0bedc1b4e39a1cfc2d1076eb17b322 (patch)
treeb40743cc632dc1bc423808fd622a958972774e5c
parent4f9d9e6de30efe2126cab2178c40f1326c649fe6 (diff)
downloadlibgpod-tmz-e59cd1d7ea0bedc1b4e39a1cfc2d1076eb17b322.tar.gz
libgpod-tmz-e59cd1d7ea0bedc1b4e39a1cfc2d1076eb17b322.tar.xz
libgpod-tmz-e59cd1d7ea0bedc1b4e39a1cfc2d1076eb17b322.zip
fix a potential crasher (Raymond Walsh)
git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1438 f01d2545-417e-4e96-918e-98f8d0dbbcb6
-rw-r--r--ChangeLog5
-rw-r--r--src/itdb_itunesdb.c6
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 <tmzullinger at users.sourceforge.net>
+
+ * src/itdb_itunesdb.c (get_playlist): fix a potential crasher
+ (Raymond Walsh)
+
2007-05-19 Jorg Schuler <jcsjcs at users.sourceforge.net>
* 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"));
}
}