mirror of
https://git.proxmox.com/git/libgit2
synced 2026-01-06 01:49:49 +00:00
We don't need memset here.
This commit is contained in:
parent
616cd13757
commit
99dcb2184a
@ -254,8 +254,6 @@ int git_remote_dup(git_remote **dest, const git_remote *source)
|
||||
git_remote *remote = git__calloc(1, sizeof(git_remote));
|
||||
GITERR_CHECK_ALLOC(remote);
|
||||
|
||||
memset(remote, 0x0, sizeof(git_remote));
|
||||
|
||||
if (source->name != NULL) {
|
||||
remote->name = git__strdup(source->name);
|
||||
GITERR_CHECK_ALLOC(remote->name);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user