mirror of
https://github.com/s3fs-fuse/s3fs-fuse.git
synced 2024-12-23 01:08:54 +00:00
Fixed cppcheck error on osx
This commit is contained in:
parent
c494e54320
commit
be9d407fa0
11
src/curl.cpp
11
src/curl.cpp
@ -1618,12 +1618,15 @@ 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;
|
||||
char* eol = (char*)memchr(p, '\n', remaining);
|
||||
int newline = 0;
|
||||
if (eol == NULL) {
|
||||
eol = (char*)memchr(p, '\r', remaining);
|
||||
} else if (eol > p && *(eol - 1) == '\r') {
|
||||
|
Loading…
Reference in New Issue
Block a user