Code

screen_browser: always declare variable "entry"
authorMax Kellermann <max@duempel.org>
Tue, 18 Nov 2008 21:47:40 +0000 (22:47 +0100)
committerMax Kellermann <max@duempel.org>
Tue, 18 Nov 2008 21:47:40 +0000 (22:47 +0100)
The local variable "entry" was only declared when lyrics were enabled,
but it is now used by CMD_LOCATE, too.

src/screen_browser.c

index 63e8c1c71a3e872f4cc7f0eca4bd9300fba25eab..be29a341a4602e1211fd3078633e7c4ff4551997 100644 (file)
@@ -487,9 +487,7 @@ bool
 browser_cmd(struct screen_browser *browser,
            struct mpdclient *c, command_t cmd)
 {
-#ifdef ENABLE_LYRICS_SCREEN
        struct filelist_entry *entry;
-#endif
 
        switch (cmd) {
        case CMD_PLAY: