Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 45d295e commit e0be1d6Copy full SHA for e0be1d6
src/transports/git.c
@@ -130,12 +130,15 @@ static int git_proto_stream_write(
130
131
static void git_proto_stream_free(git_smart_subtransport_stream *stream)
132
{
133
- git_proto_stream *s = (git_proto_stream *)stream;
134
- git_subtransport *t = OWNING_SUBTRANSPORT(s);
+ git_proto_stream *s;
+ git_subtransport *t;
135
136
if (!stream)
137
return;
138
139
+ s = (git_proto_stream *)stream;
140
+ t = OWNING_SUBTRANSPORT(s);
141
+
142
t->current_stream = NULL;
143
144
git_stream_close(s->io);
0 commit comments