Commit 9a212bf3 by Carlos Martín Nieto

git: accept NULL as argument to its stream free

parent c615d29a
...@@ -132,9 +132,9 @@ static void git_proto_stream_free(git_smart_subtransport_stream *stream) ...@@ -132,9 +132,9 @@ static void git_proto_stream_free(git_smart_subtransport_stream *stream)
{ {
git_proto_stream *s = (git_proto_stream *)stream; git_proto_stream *s = (git_proto_stream *)stream;
git_subtransport *t = OWNING_SUBTRANSPORT(s); git_subtransport *t = OWNING_SUBTRANSPORT(s);
int ret;
GIT_UNUSED(ret); if (!stream)
return;
t->current_stream = NULL; t->current_stream = NULL;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment