From 20b2bae90c102f405ba70f602c45660ce1cd0c4e Mon Sep 17 00:00:00 2001 From: Ted Kremenek Date: Thu, 11 Sep 2008 21:15:10 +0000 Subject: [PATCH] Bug fix: scan-build now correctly processes path prefixes that contain multiple '+' characters or other regex control characters. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@56121 91177308-0d34-0410-b5e6-96231b3b80d8 --- utils/scan-build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/scan-build b/utils/scan-build index e0d53ad93d..f8d2d8f42b 100755 --- a/utils/scan-build +++ b/utils/scan-build @@ -271,7 +271,7 @@ sub UpdatePrefix { return; } - chop $Prefix while (!($x =~ /^$Prefix/)); + chop $Prefix while (!($x =~ /^\Q$Prefix/)); } sub GetPrefix { -- 2.40.0