From: Fabian Keil <fk@fabiankeil.de>
Date: Thu, 21 Jan 2021 10:13:19 +0000 (+0100)
Subject: Reorder dcount in the url_spec struct to save memory
X-Git-Tag: v_3_0_30~57
X-Git-Url: http://www.privoxy.org/gitweb/%22https:/faq/@default-cgi@/@user-manual@?a=commitdiff_plain;h=1d208504f8a1db61fe139030b52219345c9cabf0;p=privoxy.git

Reorder dcount in the url_spec struct to save memory
---

diff --git a/project.h b/project.h
index 39fd39ec..98caadde 100644
--- a/project.h
+++ b/project.h
@@ -411,9 +411,9 @@ struct url_spec
    regex_t *host_regex;/**< Regex for host matching                          */
    enum host_regex_type { VANILLA_HOST_PATTERN, PCRE_HOST_PATTERN } host_regex_type;
 #endif /* defined FEATURE_PCRE_HOST_PATTERNS */
+   int    dcount;      /**< How many parts to this domain? (length of dvec)   */
    char  *dbuffer;     /**< Buffer with '\0'-delimited domain name, or NULL to match all hosts. */
    char **dvec;        /**< List of pointers to the strings in dbuffer.       */
-   int    dcount;      /**< How many parts to this domain? (length of dvec)   */
    int    unanchored;  /**< Bitmap - flags are ANCHOR_LEFT and ANCHOR_RIGHT.  */
 
    char  *port_list;   /**< List of acceptable ports, or NULL to match all ports */