diff options
Diffstat (limited to 'src/screen_play.c')
-rw-r--r-- | src/screen_play.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/screen_play.c b/src/screen_play.c index a86ab0128..cdb8320e8 100644 --- a/src/screen_play.c +++ b/src/screen_play.c @@ -156,13 +156,14 @@ handle_save_playlist(screen_t *screen, mpdclient_t *c, char *name) NULL, NULL, gcmp); - filename=g_strstrip(filename); /* destroy completion support */ wrln_pre_completion_callback = NULL; wrln_post_completion_callback = NULL; g_completion_free(gcmp); list = string_list_free(list); + if( filename ) + filename=g_strstrip(filename); } else { |