mirror of
https://github.com/mpv-player/mpv
synced 2024-12-19 05:15:12 +00:00
Simplify weird code. ;)
Approved by Diego. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@16984 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
8e2dea5f21
commit
06ac97d79f
@ -234,11 +234,9 @@ cookies_set(HTTP_header_t * http_hdr, const char *domain, const char *url)
|
||||
for (i = 0; i < found_cookies; i++) {
|
||||
if (strcmp(list->name, cookies[i]->name) == 0) {
|
||||
replacing = 0;
|
||||
if (strlen(list->domain) >
|
||||
strlen(cookies[i]->domain) == 0) {
|
||||
if (strlen(list->domain) <= strlen(cookies[i]->domain)) {
|
||||
cookies[i] = list;
|
||||
} else if (strlen(list->path) >
|
||||
strlen(cookies[i]->path) == 0) {
|
||||
} else if (strlen(list->path) <= strlen(cookies[i]->path)) {
|
||||
cookies[i] = list;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user