summaryrefslogtreecommitdiff
path: root/epan/strutil.c
diff options
context:
space:
mode:
authorBill Meier <wmeier@newsguy.com>2013-07-01 15:41:05 +0000
committerBill Meier <wmeier@newsguy.com>2013-07-01 15:41:05 +0000
commit828d4e89f64e397b922ff74d70783554a29f7671 (patch)
tree3ba01f877931aa2cfa113d03e7b597c8ce7f038e /epan/strutil.c
parent7b5a0e4a153659551c4f57f225355c4e8504f9b5 (diff)
downloadwireshark-828d4e89f64e397b922ff74d70783554a29f7671.tar.gz
Define certain 'const char *...' arrays as static.
(That is: Don't create the array on the stack each time the function is called). Reduces code memory usage and execution time. (See SVN #50271) svn path=/trunk/; revision=50300
Diffstat (limited to 'epan/strutil.c')
-rw-r--r--epan/strutil.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/strutil.c b/epan/strutil.c
index d7ad038976..6c77002b5d 100644
--- a/epan/strutil.c
+++ b/epan/strutil.c
@@ -534,7 +534,7 @@ format_uri(const GByteArray *bytes, const gchar *reserved_chars)
static gchar *fmtbuf[3];
static guint fmtbuf_len[3];
static guint idx;
- const guchar *reserved_def = ":/?#[]@!$&'()*+,;= ";
+ static const guchar *reserved_def = ":/?#[]@!$&'()*+,;= ";
const guchar *reserved = reserved_def;
guint8 c;
guint column, i;