From: Max Kellermann Date: Thu, 10 Dec 2009 06:36:42 +0000 (+0100) Subject: screen_browser: explicitly initialize local variable X-Git-Tag: release-0.16~11 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=f4d9c44427425c33e77c911fe92d4edf0526b42f;p=ncmpc.git screen_browser: explicitly initialize local variable Make gcc happy. --- diff --git a/src/screen_browser.c b/src/screen_browser.c index ef66141..50769b8 100644 --- a/src/screen_browser.c +++ b/src/screen_browser.c @@ -330,14 +330,15 @@ browser_handle_add(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) { entry = browser_get_index(browser, i); if (entry != NULL && entry->entity != NULL) - success = browser_select_entry(c, entry, FALSE); + success = browser_select_entry(c, entry, FALSE) || + success; } return range.end == range.start + 1 && success;