From: Max Kellermann Date: Wed, 2 Dec 2009 12:34:11 +0000 (+0100) Subject: screen_queue: simplified screen_readln() call in MINI X-Git-Tag: release-0.16~12 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=67f83b997c4016fde7f208aa8c3de35c7ee090d7;p=ncmpc.git screen_queue: simplified screen_readln() call in MINI --- 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