aboutsummaryrefslogtreecommitdiffhomepage
path: root/parser.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'parser.cpp')
-rw-r--r--parser.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/parser.cpp b/parser.cpp
index af691f0..d6bee1c 100644
--- a/parser.cpp
+++ b/parser.cpp
@@ -988,7 +988,7 @@ StateSearch::initial(void)
static inline const gchar *
regexp_escape_chr(gchar chr)
{
- static gchar escaped[3] = {'\\', '\0', '\0'};
+ static gchar escaped[] = {'\\', '\0', '\0'};
escaped[1] = chr;
return g_ascii_isalnum(chr) ? escaped + 1 : escaped;