mirror of
https://gitlab.com/gnuwget/wget2.git
synced 2026-02-01 14:41:08 +00:00
* libwget/cookie.c (_cookie_db_save): Fix ferror() check
Reported-by: Gisle Vanem
This commit is contained in:
@ -671,7 +671,7 @@ static int _cookie_db_save(wget_cookie_db_t *cookie_db, FILE *fp)
|
||||
(int64_t)cookie->expires,
|
||||
cookie->name, cookie->value);
|
||||
|
||||
if (!ferror(fp))
|
||||
if (ferror(fp))
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user