From: Daniel Stenberg Date: Wed, 26 Jul 2017 23:13:19 +0000 (+0200) Subject: checksrc: escape open brace in regex X-Git-Tag: curl-7_55_0~52 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=60cf84f7f2e05a7d275616b28267d51fa184e793;p=curl checksrc: escape open brace in regex ... to silence warning. --- 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, , et al. +# Copyright (C) 2011 - 2017, Daniel Stenberg, , 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 *//;