Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
git2
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
git2
Commits
41ccbc04
Unverified
Commit
41ccbc04
authored
Feb 01, 2021
by
Edward Thomson
Committed by
GitHub
Feb 01, 2021
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #5783 from lhchavez/mwindow-coverity
mwindow: Fix a bug in the LRU window finding code
parents
50f53622
2f382ab7
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletions
+3
-1
src/mwindow.c
+3
-1
No files found.
src/mwindow.c
View file @
41ccbc04
...
@@ -312,9 +312,11 @@ static int git_mwindow_find_lru_file_locked(git_mwindow_file **out)
...
@@ -312,9 +312,11 @@ static int git_mwindow_find_lru_file_locked(git_mwindow_file **out)
current_file
,
&
mru_window
,
NULL
,
true
,
GIT_MWINDOW__MRU
))
{
current_file
,
&
mru_window
,
NULL
,
true
,
GIT_MWINDOW__MRU
))
{
continue
;
continue
;
}
}
if
(
!
lru_window
||
lru_window
->
last_used
>
mru_window
->
last_used
)
if
(
!
lru_window
||
lru_window
->
last_used
>
mru_window
->
last_used
)
{
lru_window
=
mru_window
;
lru_file
=
current_file
;
lru_file
=
current_file
;
}
}
}
if
(
!
lru_file
)
{
if
(
!
lru_file
)
{
git_error_set
(
GIT_ERROR_OS
,
"failed to close memory window file; couldn't find LRU"
);
git_error_set
(
GIT_ERROR_OS
,
"failed to close memory window file; couldn't find LRU"
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment