[MPlayer-cvslog] CVS: main/libmpdemux cookies.c,1.4,1.5

Dominik Mierzejewski CVS syncmail at mplayerhq.hu
Sun Nov 13 21:25:08 CET 2005


CVS change done by Dominik Mierzejewski CVS

Update of /cvsroot/mplayer/main/libmpdemux
In directory mail:/var2/tmp/cvs-serv13858

Modified Files:
	cookies.c 
Log Message:
Simplify weird code. ;)
Approved by Diego.


Index: cookies.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpdemux/cookies.c,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- cookies.c	9 Dec 2003 11:27:10 -0000	1.4
+++ cookies.c	13 Nov 2005 20:25:06 -0000	1.5
@@ -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;
 		    }
 		}




More information about the MPlayer-cvslog mailing list