mirror of
https://git.proxmox.com/git/libgit2
synced 2025-08-04 20:45:07 +00:00
remote: some error-handling issues from Coverity
This commit is contained in:
parent
babdc376c7
commit
2785544fb5
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user