aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2017-07-27 01:13:19 +0200
committerDaniel Stenberg <daniel@haxx.se>2017-07-27 01:13:19 +0200
commit60cf84f7f2e05a7d275616b28267d51fa184e793 (patch)
treea6e4a7e307e8ef9e21af2a7b28e53593d181d926 /lib
parent42a4cd4c78b3feb5ca07286479129116e125a730 (diff)
checksrc: escape open brace in regex
... to silence warning.
Diffstat (limited to 'lib')
-rwxr-xr-xlib/checksrc.pl4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/checksrc.pl b/lib/checksrc.pl
index 7857bbfc7..2eff3e0cf 100755
--- a/lib/checksrc.pl
+++ b/lib/checksrc.pl
@@ -6,7 +6,7 @@
# | (__| |_| | _ <| |___
# \___|\___/|_| \_\_____|
#
-# Copyright (C) 2011 - 2016, Daniel Stenberg, <daniel@haxx.se>, et al.
+# Copyright (C) 2011 - 2017, Daniel Stenberg, <daniel@haxx.se>, et al.
#
# This software is licensed as described in the file COPYING, which
# you should have received as part of this distribution. The terms
@@ -513,7 +513,7 @@ sub scanfile {
# check for 'void func() {', but avoid false positives by requiring
# both an open and closed parentheses before the open brace
- if($l =~ /^((\w).*){\z/) {
+ if($l =~ /^((\w).*)\{\z/) {
my $k = $1;
$k =~ s/const *//;
$k =~ s/static *//;