mirror of
https://github.com/moparisthebest/curl
synced 2025-01-01 17:08:00 -05:00
strequal() returns int so we typecast the return to bool when we store the
result as bool
This commit is contained in:
parent
47afa058a8
commit
9948250723
@ -121,7 +121,7 @@ static bool tailmatch(const char *little, const char *bigone)
|
|||||||
if(littlelen > biglen)
|
if(littlelen > biglen)
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
||||||
return strequal(little, bigone+biglen-littlelen);
|
return (bool)strequal(little, bigone+biglen-littlelen);
|
||||||
}
|
}
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
@ -415,7 +415,7 @@ Curl_cookie_add(struct SessionHandle *data,
|
|||||||
As far as I can see, it is set to true when the cookie says
|
As far as I can see, it is set to true when the cookie says
|
||||||
.domain.com and to false when the domain is complete www.domain.com
|
.domain.com and to false when the domain is complete www.domain.com
|
||||||
*/
|
*/
|
||||||
co->tailmatch=strequal(ptr, "TRUE"); /* store information */
|
co->tailmatch=(bool)strequal(ptr, "TRUE"); /* store information */
|
||||||
break;
|
break;
|
||||||
case 2:
|
case 2:
|
||||||
/* It turns out, that sometimes the file format allows the path
|
/* It turns out, that sometimes the file format allows the path
|
||||||
@ -431,7 +431,7 @@ Curl_cookie_add(struct SessionHandle *data,
|
|||||||
fields++; /* add a field and fall down to secure */
|
fields++; /* add a field and fall down to secure */
|
||||||
/* FALLTHROUGH */
|
/* FALLTHROUGH */
|
||||||
case 3:
|
case 3:
|
||||||
co->secure = strequal(ptr, "TRUE");
|
co->secure = (bool)strequal(ptr, "TRUE");
|
||||||
break;
|
break;
|
||||||
case 4:
|
case 4:
|
||||||
co->expires = atoi(ptr);
|
co->expires = atoi(ptr);
|
||||||
|
Loading…
Reference in New Issue
Block a user