git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] Don't use curl_easy_strerror prior to curl-7.12.0
@ 2012-08-22 15:44 Joachim Schmitz
  2012-08-22 17:18 ` Junio C Hamano
  0 siblings, 1 reply; 12+ messages in thread
From: Joachim Schmitz @ 2012-08-22 15:44 UTC (permalink / raw)
  To: Junio C Hamano; +Cc: git


Signed-off-by: Joachim Schmitz <jojo@schmitz-digital.de>
---
 http.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/http.c b/http.c
index b61ac85..18bc6bf 100644
--- a/http.c
+++ b/http.c
@@ -806,10 +806,12 @@ static int http_request(const char *url, void *result,
int target, int options)
                                ret = HTTP_REAUTH;
                        }
                } else {
+#if LIBCURL_VERSION_NUM >= 0x070c00
                        if (!curl_errorstr[0])
                                strlcpy(curl_errorstr,
 
curl_easy_strerror(results.curl_result),
                                        sizeof(curl_errorstr));
+#endif
                        ret = HTTP_ERROR;
                }
        } else {
--
1.7.12

Bye, Jojo

^ permalink raw reply related	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2012-08-24  5:30 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-08-22 15:44 [PATCH] Don't use curl_easy_strerror prior to curl-7.12.0 Joachim Schmitz
2012-08-22 17:18 ` Junio C Hamano
2012-08-22 17:28   ` Joachim Schmitz
2012-08-22 17:41     ` Junio C Hamano
2012-08-22 17:59       ` Joachim Schmitz
2012-08-22 18:17         ` Junio C Hamano
2012-08-22 18:50           ` Joachim Schmitz
2012-08-22 21:01             ` Junio C Hamano
2012-08-22 21:05               ` Joachim Schmitz
2012-08-23  7:33               ` Joachim Schmitz
2012-08-23 21:27                 ` Junio C Hamano
2012-08-24  5:30                   ` Joachim Schmitz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).