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
2f3f28b4
Commit
2f3f28b4
authored
Jul 05, 2011
by
Vicent Martí
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #302 from carlosmn/development
Small fixes in pack_window_open
parents
e45e548a
2ee318a7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletions
+6
-1
src/odb_pack.c
+6
-1
No files found.
src/odb_pack.c
View file @
2f3f28b4
...
...
@@ -480,6 +480,9 @@ static unsigned char *pack_window_open(
size_t
len
;
win
=
git__calloc
(
1
,
sizeof
(
*
win
));
if
(
win
==
NULL
)
return
NULL
;
win
->
offset
=
(
offset
/
window_align
)
*
window_align
;
len
=
(
size_t
)(
p
->
pack_size
-
win
->
offset
);
...
...
@@ -492,8 +495,10 @@ static unsigned char *pack_window_open(
pack_window_close_lru
(
backend
,
p
,
p
->
pack_fd
)
==
GIT_SUCCESS
)
{}
if
(
git_futils_mmap_ro
(
&
win
->
window_map
,
p
->
pack_fd
,
win
->
offset
,
len
)
<
GIT_SUCCESS
)
win
->
offset
,
len
)
<
GIT_SUCCESS
)
{
free
(
win
);
return
NULL
;
}
backend
->
mmap_calls
++
;
backend
->
open_windows
++
;
...
...
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