mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-29 22:25:04 +00:00
git: accept NULL as argument to its stream free
This commit is contained in:
parent
fd74bd0842
commit
45d295e08c
@ -132,9 +132,9 @@ static void git_proto_stream_free(git_smart_subtransport_stream *stream)
|
||||
{
|
||||
git_proto_stream *s = (git_proto_stream *)stream;
|
||||
git_subtransport *t = OWNING_SUBTRANSPORT(s);
|
||||
int ret;
|
||||
|
||||
GIT_UNUSED(ret);
|
||||
if (!stream)
|
||||
return;
|
||||
|
||||
t->current_stream = NULL;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user