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
ff80b5e8
Commit
ff80b5e8
authored
Jan 26, 2015
by
Edward Thomson
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2847 from jacquesg/coverity
More coverity fixes
parents
9a09ed13
bb6aafe8
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
1 deletions
+8
-1
src/diff_patch.c
+2
-1
src/index.c
+3
-0
src/pathspec.c
+3
-0
No files found.
src/diff_patch.c
View file @
ff80b5e8
...
...
@@ -823,7 +823,8 @@ int git_patch__invoke_callbacks(
for
(
i
=
0
;
!
error
&&
i
<
git_array_size
(
patch
->
hunks
);
++
i
)
{
diff_patch_hunk
*
h
=
git_array_get
(
patch
->
hunks
,
i
);
error
=
hunk_cb
(
patch
->
delta
,
&
h
->
hunk
,
payload
);
if
(
hunk_cb
)
error
=
hunk_cb
(
patch
->
delta
,
&
h
->
hunk
,
payload
);
if
(
!
line_cb
)
continue
;
...
...
src/index.c
View file @
ff80b5e8
...
...
@@ -292,6 +292,9 @@ static void index_entry_reuc_free(git_index_reuc_entry *reuc)
static
void
index_entry_free
(
git_index_entry
*
entry
)
{
if
(
!
entry
)
return
;
memset
(
&
entry
->
id
,
0
,
sizeof
(
entry
->
id
));
git__free
(
entry
);
}
...
...
src/pathspec.c
View file @
ff80b5e8
...
...
@@ -318,6 +318,9 @@ static git_pathspec_match_list *pathspec_match_alloc(
m
=
NULL
;
}
if
(
!
m
)
return
NULL
;
/* need to keep reference to pathspec and increment refcount because
* failures array stores pointers to the pattern strings of the
* pathspec that had no matches
...
...
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