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
ae5ee182
Commit
ae5ee182
authored
Mar 17, 2018
by
Emilio Cobos Álvarez
Committed by
Nika Layzell
Jun 14, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mailmap: git_vector_get already checks bounds
parent
ae222136
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
4 deletions
+1
-4
src/mailmap.c
+1
-4
No files found.
src/mailmap.c
View file @
ae5ee182
...
...
@@ -267,10 +267,7 @@ git_mailmap_entry *git_mailmap_entry_lookup(
git_mailmap_entry
*
git_mailmap_entry_byindex
(
git_mailmap
*
mailmap
,
size_t
idx
)
{
if
(
idx
<
git_vector_length
(
&
mailmap
->
entries
))
return
git_vector_get
(
&
mailmap
->
entries
,
idx
);
return
NULL
;
return
git_vector_get
(
&
mailmap
->
entries
,
idx
);
}
size_t
git_mailmap_entry_count
(
git_mailmap
*
mailmap
)
...
...
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