mirror of
https://github.com/mpv-player/mpv
synced 2024-12-26 09:02:38 +00:00
cookies: fix crash
This was broken in 3f85094
(probably merge mistake). I guess nobody ever
uses this feature.
This commit is contained in:
parent
c162b6d64d
commit
570271c776
@ -162,10 +162,10 @@ static struct cookie_list_type *load_cookies_from(const char *filename,
|
|||||||
struct cookie_list_type
|
struct cookie_list_type
|
||||||
*list)
|
*list)
|
||||||
{
|
{
|
||||||
char *ptr;
|
char *ptr, *file;
|
||||||
int64_t length;
|
int64_t length;
|
||||||
|
|
||||||
ptr = load_file(filename, &length);
|
ptr = file = load_file(filename, &length);
|
||||||
if (!ptr)
|
if (!ptr)
|
||||||
return list;
|
return list;
|
||||||
|
|
||||||
@ -183,7 +183,7 @@ static struct cookie_list_type *load_cookies_from(const char *filename,
|
|||||||
list = new;
|
list = new;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
free(ptr);
|
free(file);
|
||||||
return list;
|
return list;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user