lynx-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

lynx-dev tiny trace fix (patch)


From: Leonid Pauzner
Subject: lynx-dev tiny trace fix (patch)
Date: Tue, 25 May 1999 16:36:52 +0400 (MSD)

* tweak trace message in scan_cookie_sublist(): limit trace output
  by trying LYstrstr() as a first approximation before host_matches().



diff -u old/lycookie.c ./lycookie.c
--- old/lycookie.c      Tue May 25 00:14:38 1999
+++ ./lycookie.c        Tue May 25 16:27:38 1999
@@ -609,7 +609,9 @@
        co = (cookie *)hl->object;
        next = hl->next;

-       if (co) {
+       if ((co) && /* speed-up host_matches() and limit trace output */
+           (LYstrstr(hostname, co->domain) != NULL))
+       {
            CTRACE(tfp, "Checking cookie %p %s=%s\n",
                        hl,
                        (co->name ? co->name : "(no name)"),




reply via email to

[Prev in Thread] Current Thread [Next in Thread]