mirror of
https://github.com/moparisthebest/curl
synced 2024-12-21 15:48:49 -05:00
fix questionable compare
This commit is contained in:
parent
cc34342790
commit
0040a60559
@ -390,7 +390,7 @@ static time_t Curl_parsedate(const char *date)
|
|||||||
*/
|
*/
|
||||||
t = mktime(&tm);
|
t = mktime(&tm);
|
||||||
|
|
||||||
/* time zone adjust */
|
/* time zone adjust (cast t to int to compare to negative one) */
|
||||||
if(-1 != (int)t) {
|
if(-1 != (int)t) {
|
||||||
struct tm *gmt;
|
struct tm *gmt;
|
||||||
long delta;
|
long delta;
|
||||||
|
Loading…
Reference in New Issue
Block a user