commit 6e72f43fa4db515b729337debc4b786ee5bca51d Author: Daniele Forsi <dani...@forsi.it> Date: Thu Jul 12 12:18:58 2012 +0200
Don't check twice if name is NULL It is already checked after calling get_user_string(). plugins/playlist_display/playlist_display_spl.c | 14 ++++++-------- 1 files changed, 6 insertions(+), 8 deletions(-) --- diff --git a/plugins/playlist_display/playlist_display_spl.c b/plugins/playlist_display/playlist_display_spl.c index 42cb6dc..d6ceee1 100644 --- a/plugins/playlist_display/playlist_display_spl.c +++ b/plugins/playlist_display/playlist_display_spl.c @@ -1520,14 +1520,12 @@ void add_new_pl_or_spl_user_name(iTunesDB *itdb, gchar *dflt, gint32 position) { return; } - if (name) { - if (!is_spl) { /* add standard playlist */ - gp_playlist_add_new(itdb, name, FALSE, position); - gtkpod_tracks_statusbar_update (); - } - else { /* add smart playlist */ - spl_edit_new(itdb, name, position); - } + if (!is_spl) { /* add standard playlist */ + gp_playlist_add_new(itdb, name, FALSE, position); + gtkpod_tracks_statusbar_update (); + } + else { /* add smart playlist */ + spl_edit_new(itdb, name, position); } } ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ gtkpod-cvs2 mailing list gtkpod-cvs2@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gtkpod-cvs2