diff options
author | Matt Burke <spraints@gmail.com> | 2015-09-25 10:16:16 -0400 |
---|---|---|
committer | Matt Burke <spraints@gmail.com> | 2015-09-25 10:16:30 -0400 |
commit | d7375662e7b4c885ea4865403e4db4c130e79198 (patch) | |
tree | 6ac415290f2025cb1ac9ef91546eeb4bc2f1232e /src/remote.c | |
parent | d16c1b978fa3498a8a800d80ef6ed8a1e39ca314 (diff) | |
download | libgit2-d7375662e7b4c885ea4865403e4db4c130e79198.tar.gz |
Copy custom_headers insteach of referencing the caller's copy
Diffstat (limited to 'src/remote.c')
-rw-r--r-- | src/remote.c | 2 |
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); |