summaryrefslogtreecommitdiff
path: root/src/transports/git.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/transports/git.c')
-rw-r--r--src/transports/git.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/transports/git.c b/src/transports/git.c
index 52de92d09..3e7e5a04f 100644
--- a/src/transports/git.c
+++ b/src/transports/git.c
@@ -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;