mirror of
https://github.com/curl/curl.git
synced 2026-05-30 06:57:28 +03:00
multi: add scan-build-6 work-around in curl_multi_fdset
scan-build-6 otherwise warns, saying: warning: The left operand of '>=' is a garbage value otherwise, which is false. Later scan-builds don't claim this on the same code. Closes #7248
This commit is contained in:
parent
c4b8ec495d
commit
77bc35901f
1 changed files with 6 additions and 1 deletions
|
|
@ -1043,7 +1043,12 @@ CURLMcode curl_multi_fdset(struct Curl_multi *multi,
|
|||
|
||||
data = multi->easyp;
|
||||
while(data) {
|
||||
int bitmap = multi_getsock(data, sockbunch);
|
||||
int bitmap;
|
||||
#ifdef __clang_analyzer_
|
||||
/* to prevent "The left operand of '>=' is a garbage value" warnings */
|
||||
memset(sockbunch, 0, sizeof(sockbunch));
|
||||
#endif
|
||||
bitmap = multi_getsock(data, sockbunch);
|
||||
|
||||
for(i = 0; i< MAX_SOCKSPEREASYHANDLE; i++) {
|
||||
curl_socket_t s = CURL_SOCKET_BAD;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue