mirror of
https://github.com/curl/curl.git
synced 2026-08-24 13:03:35 +03:00
parsedate.c: Fixed compilation warning
parsedate.c:548: warning: 'parsed' may be used uninitialized in this
function
As curl_getdate() returns -1 when parsedate() fails we can initialise
parsed to -1.
This commit is contained in:
parent
cd6c13c2b3
commit
664b9baf67
1 changed files with 1 additions and 1 deletions
|
|
@ -545,7 +545,7 @@ static int parsedate(const char *date, time_t *output)
|
|||
|
||||
time_t curl_getdate(const char *p, const time_t *now)
|
||||
{
|
||||
time_t parsed;
|
||||
time_t parsed = -1;
|
||||
int rc = parsedate(p, &parsed);
|
||||
(void)now; /* legacy argument from the past that we ignore */
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue