summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 67f83b9)
raw | patch | inline | side by side (parent: 67f83b9)
author | Max Kellermann <max@duempel.org> | |
Thu, 10 Dec 2009 06:36:42 +0000 (07:36 +0100) | ||
committer | Max Kellermann <max@duempel.org> | |
Thu, 10 Dec 2009 06:36:42 +0000 (07:36 +0100) |
Make gcc happy.
src/screen_browser.c | patch | blob | history |
diff --git a/src/screen_browser.c b/src/screen_browser.c
index ef6614167d31f30a21c03f2834cedf40152b0a0b..50769b88a911c13dfdd27c9618329b004a4062ad 100644 (file)
--- a/src/screen_browser.c
+++ b/src/screen_browser.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;