changeset 16983:4f4b0a763178

Simplify weird code. ;) Approved by Diego.
author rathann
date Sun, 13 Nov 2005 20:25:06 +0000
parents a9da2db9eb16
children 94b70ab52695
files libmpdemux/cookies.c
diffstat 1 files changed, 2 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/libmpdemux/cookies.c	Sun Nov 13 18:28:44 2005 +0000
+++ b/libmpdemux/cookies.c	Sun Nov 13 20:25:06 2005 +0000
@@ -234,11 +234,9 @@
 	    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;
 		    }
 		}