summaryrefslogtreecommitdiff
path: root/src/remote.c
diff options
context:
space:
mode:
authorMatt Burke <spraints@gmail.com>2015-09-25 10:16:16 -0400
committerMatt Burke <spraints@gmail.com>2015-09-25 10:16:30 -0400
commitd7375662e7b4c885ea4865403e4db4c130e79198 (patch)
tree6ac415290f2025cb1ac9ef91546eeb4bc2f1232e /src/remote.c
parentd16c1b978fa3498a8a800d80ef6ed8a1e39ca314 (diff)
downloadlibgit2-d7375662e7b4c885ea4865403e4db4c130e79198.tar.gz
Copy custom_headers insteach of referencing the caller's copy
Diffstat (limited to 'src/remote.c')
-rw-r--r--src/remote.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/remote.c b/src/remote.c
index 84b8d590f..2f8ffcb37 100644
--- a/src/remote.c
+++ b/src/remote.c
@@ -689,7 +689,7 @@ int set_transport_callbacks(git_transport *t, const git_remote_callbacks *cbs)
static int set_transport_custom_headers(git_transport *t, const git_strarray *custom_headers)
{
- if (!t->set_custom_headers || !custom_headers)
+ if (!t->set_custom_headers)
return 0;
return t->set_custom_headers(t, custom_headers);