From: Romain Bignon Date: Tue, 3 Mar 2009 21:09:56 +0000 (+0100) Subject: fixed crash while saving a playlist X-Git-Tag: release-0.14~85 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=6677eccd27725fc3ca603ff0e0e265295cf32593;p=ncmpc.git fixed crash while saving a playlist It happens when there isn't any playlist in browser --- diff --git a/src/screen_file.c b/src/screen_file.c index f9325c0..09d8dee 100644 --- a/src/screen_file.c +++ b/src/screen_file.c @@ -99,7 +99,8 @@ handle_save(mpdclient_t *c) } } - defaultname = utf8_to_locale(defaultname); + if(defaultname) + defaultname = utf8_to_locale(defaultname); ret = playlist_save(c, NULL, defaultname); g_free(defaultname);