mirror of
https://github.com/s3fs-fuse/s3fs-fuse.git
synced 2025-04-01 22:21:53 +00:00
Fixed cppcheck error on osx
This commit is contained in:
parent
c494e54320
commit
be9d407fa0
@ -1618,9 +1618,12 @@ int S3fsCurl::CurlDebugFunc(CURL* hcurl, curl_infotype type, char* data, size_t
|
|||||||
break;
|
break;
|
||||||
case CURLINFO_HEADER_IN:
|
case CURLINFO_HEADER_IN:
|
||||||
case CURLINFO_HEADER_OUT:
|
case CURLINFO_HEADER_OUT:
|
||||||
|
size_t remaining;
|
||||||
|
char* p;
|
||||||
|
|
||||||
// Print each line individually for tidy output
|
// Print each line individually for tidy output
|
||||||
size_t remaining = size;
|
remaining = size;
|
||||||
char* p = data;
|
p = data;
|
||||||
do {
|
do {
|
||||||
char* eol = (char*)memchr(p, '\n', remaining);
|
char* eol = (char*)memchr(p, '\n', remaining);
|
||||||
int newline = 0;
|
int newline = 0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user