From: Fabian Keil <fk@fabiankeil.de>
Date: Thu, 24 May 2012 15:04:34 +0000 (+0000)
Subject: Declare pcrs_get_delimiter()'s delimiters[] static const
X-Git-Tag: v_3_0_20~337
X-Git-Url: http://www.privoxy.org/gitweb/%22https:/faq/developer-manual/diff?a=commitdiff_plain;h=aa0a5f4178418ecd8057539f2f865f2801357c91;p=privoxy.git

Declare pcrs_get_delimiter()'s delimiters[] static const
---

diff --git a/pcrs.c b/pcrs.c
index 52d7b906..89de9bc3 100644
--- a/pcrs.c
+++ b/pcrs.c
@@ -1,4 +1,4 @@
-const char pcrs_rcs[] = "$Id: pcrs.c,v 1.40 2012/03/09 17:55:50 fabiankeil Exp $";
+const char pcrs_rcs[] = "$Id: pcrs.c,v 1.41 2012/05/24 15:02:38 fabiankeil Exp $";
 /*********************************************************************
  *
  * File        :  $Source: /cvsroot/ijbswa/current/pcrs.c,v $
@@ -997,8 +997,8 @@ char pcrs_get_delimiter(const char *string)
     * Some characters that are unlikely to
     * be part of pcrs replacement strings.
     */
-   char delimiters[] = "><#+*~%^-:;!@";
-   char *d = delimiters;
+   static const char delimiters[] = "><#+*~%^-:;!@";
+   const char *d = delimiters;
 
    /* Take the first delimiter that isn't part of the string */
    while (*d && NULL != strchr(string, *d))