mirror of
https://github.com/s3fs-fuse/s3fs-fuse.git
synced 2024-12-23 01:08:54 +00:00
Fixed a error by cppcheck on OSX
This commit is contained in:
parent
3bf05dabea
commit
0d3fb0658a
@ -1633,10 +1633,10 @@ int S3fsCurl::CurlDebugFunc(CURL* hcurl, curl_infotype type, char* data, size_t
|
|||||||
int newline = 0;
|
int newline = 0;
|
||||||
if (eol == NULL) {
|
if (eol == NULL) {
|
||||||
eol = (char*)memchr(p, '\r', remaining);
|
eol = (char*)memchr(p, '\r', remaining);
|
||||||
} else if (eol > p && *(eol - 1) == '\r') {
|
} else {
|
||||||
|
if (eol > p && *(eol - 1) == '\r') {
|
||||||
newline++;
|
newline++;
|
||||||
}
|
}
|
||||||
if (eol != NULL) {
|
|
||||||
newline++;
|
newline++;
|
||||||
eol++;
|
eol++;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user