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
ae0ddc6f
Commit
ae0ddc6f
authored
Dec 12, 2012
by
Ben Straub
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1139 from ethomson/index_bugfix
don't walk off the end of the index
parents
6cacd44b
e759b072
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
src/index.c
+5
-4
No files found.
src/index.c
View file @
ae0ddc6f
...
...
@@ -957,13 +957,14 @@ int git_index_conflict_remove(git_index *index, const char *path)
continue
;
}
error
=
git_vector_remove
(
&
index
->
entries
,
(
unsigned
int
)
pos
);
if
((
error
=
git_vector_remove
(
&
index
->
entries
,
(
unsigned
int
)
pos
))
<
0
)
return
error
;
i
f
(
error
>=
0
)
index_entry_free
(
conflict_entry
)
;
i
ndex_entry_free
(
conflict_entry
);
posmax
--
;
}
return
error
;
return
0
;
}
static
int
index_conflicts_match
(
const
git_vector
*
v
,
size_t
idx
)
...
...
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