diff options
author | Todd Zullinger <tmzullinger@users.sourceforge.net> | 2007-05-23 15:30:36 +0000 |
---|---|---|
committer | Todd Zullinger <tmzullinger@users.sourceforge.net> | 2007-05-23 15:30:36 +0000 |
commit | e59cd1d7ea0bedc1b4e39a1cfc2d1076eb17b322 (patch) | |
tree | b40743cc632dc1bc423808fd622a958972774e5c | |
parent | 4f9d9e6de30efe2126cab2178c40f1326c649fe6 (diff) | |
download | libgpod-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-- | ChangeLog | 5 | ||||
-rw-r--r-- | src/itdb_itunesdb.c | 6 |
2 files changed, 8 insertions, 3 deletions
@@ -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")); } } |