From 67f83b997c4016fde7f208aa8c3de35c7ee090d7 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Wed, 2 Dec 2009 13:34:11 +0100 Subject: [PATCH] screen_queue: simplified screen_readln() call in MINI --- src/screen_queue.c | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/src/screen_queue.c b/src/screen_queue.c index f3ca21a..fbcc180 100644 --- a/src/screen_queue.c +++ b/src/screen_queue.c @@ -376,8 +376,8 @@ static int handle_add_to_playlist(struct mpdclient *c) { gchar *path; -#ifndef NCMPC_MINI GCompletion *gcmp; +#ifndef NCMPC_MINI GList *list = NULL; GList *dir_list = NULL; completion_callback_data_t data; @@ -391,18 +391,15 @@ handle_add_to_playlist(struct mpdclient *c) wrln_completion_callback_data = &data; wrln_pre_completion_callback = add_pre_completion_cb; wrln_post_completion_callback = add_post_completion_cb; +#else + gcmp = NULL; #endif /* get path */ path = screen_readln(_("Add"), NULL, NULL, -#ifdef NCMPC_MINI - NULL -#else - gcmp -#endif - ); + gcmp); /* destroy completion data */ #ifndef NCMPC_MINI -- 2.30.2