From 341ea416977251b39ca75e281d47108c2ce0bbba Mon Sep 17 00:00:00 2001 From: Kalle Wallin Date: Mon, 13 Dec 2004 16:21:36 +0000 Subject: Fixed abort (Ctrl-G) handling in the save playlist prompt git-svn-id: https://svn.musicpd.org/ncmpc/trunk@2794 09075e82-0dd4-0310-85a5-a0d7c8717e4f --- src/screen_play.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/screen_play.c') 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 { -- cgit v1.2.3