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
2785544f
Commit
2785544f
authored
Jun 07, 2015
by
Carlos Martín Nieto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remote: some error-handling issues from Coverity
parent
babdc376
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
src/remote.c
+3
-2
No files found.
src/remote.c
View file @
2785544f
...
...
@@ -869,7 +869,7 @@ int git_remote_download(git_remote *remote, const git_strarray *refspecs, const
{
int
error
=
-
1
;
size_t
i
;
git_vector
refs
,
specs
,
*
to_active
;
git_vector
*
to_active
,
specs
=
GIT_VECTOR_INIT
,
refs
=
GIT_VECTOR_INIT
;
const
git_remote_callbacks
*
cbs
=
NULL
;
assert
(
remote
);
...
...
@@ -2451,7 +2451,8 @@ char *apply_insteadof(git_config *config, const char *url, int direction)
suffix_length
=
strlen
(
SUFFIX_PUSH
)
+
1
;
}
git_config_iterator_glob_new
(
&
iter
,
config
,
regexp
);
if
(
git_config_iterator_glob_new
(
&
iter
,
config
,
regexp
)
<
0
)
return
NULL
;
match_length
=
0
;
while
(
git_config_next
(
&
entry
,
iter
)
==
0
)
{
...
...
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