Code

screen_browser: initialize local variable
authorMax Kellermann <max@duempel.org>
Tue, 20 Oct 2009 05:59:11 +0000 (07:59 +0200)
committerMax Kellermann <max@duempel.org>
Tue, 20 Oct 2009 05:59:11 +0000 (07:59 +0200)
src/screen_browser.c

index ed07b6957a0fbbaaf8f2ade06539c13d0d40d902..89c84abedcb76f3867061940b9ad206d43ff311b 100644 (file)
@@ -312,7 +312,7 @@ browser_handle_select(struct screen_browser *browser, struct mpdclient *c)
 {
        struct list_window_range range;
        struct filelist_entry *entry;
-       bool success;
+       bool success = false;
 
        list_window_get_range(browser->lw, &range);
        for (unsigned i = range.start; i < range.end; ++i) {