Commit 50225df6 by Carlos Martín Nieto

git: put NULL check at the top

parent 9a212bf3
...@@ -130,12 +130,15 @@ static int git_proto_stream_write( ...@@ -130,12 +130,15 @@ static int git_proto_stream_write(
static void git_proto_stream_free(git_smart_subtransport_stream *stream) static void git_proto_stream_free(git_smart_subtransport_stream *stream)
{ {
git_proto_stream *s = (git_proto_stream *)stream; git_proto_stream *s;
git_subtransport *t = OWNING_SUBTRANSPORT(s); git_subtransport *t;
if (!stream) if (!stream)
return; return;
s = (git_proto_stream *)stream;
t = OWNING_SUBTRANSPORT(s);
t->current_stream = NULL; t->current_stream = NULL;
git_stream_close(s->io); git_stream_close(s->io);
......
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