Skip to content

Commit 8ea9187

Browse files
committed
Fix git_mwindow_scan_recently_used spuriously returning true
1 parent c71321a commit 8ea9187

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/mwindow.c

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -201,10 +201,6 @@ static bool git_mwindow_scan_recently_used(
201201
assert(mwf);
202202
assert(out_window);
203203

204-
lru_window = *out_window;
205-
if (out_last)
206-
lru_last = *out_last;
207-
208204
for (w_last = NULL, w = mwf->windows; w; w_last = w, w = w->next) {
209205
if (w->inuse_cnt) {
210206
if (only_unused)
@@ -226,7 +222,7 @@ static bool git_mwindow_scan_recently_used(
226222
}
227223
}
228224

229-
if (!lru_window && !lru_last)
225+
if (!lru_window)
230226
return false;
231227

232228
*out_window = lru_window;

0 commit comments

Comments
 (0)