Fixed cppcheck error on osx

This commit is contained in:
Takeshi Nakatani 2018-02-28 12:29:58 +00:00
parent c494e54320
commit be9d407fa0

View File

@ -1618,9 +1618,12 @@ int S3fsCurl::CurlDebugFunc(CURL* hcurl, curl_infotype type, char* data, size_t
break;
case CURLINFO_HEADER_IN:
case CURLINFO_HEADER_OUT:
size_t remaining;
char* p;
// Print each line individually for tidy output
size_t remaining = size;
char* p = data;
remaining = size;
p = data;
do {
char* eol = (char*)memchr(p, '\n', remaining);
int newline = 0;