]> granicus.if.org Git - clang/commitdiff
Bug fix: <rdar://problem/6164367>
authorTed Kremenek <kremenek@apple.com>
Thu, 11 Sep 2008 21:15:10 +0000 (21:15 +0000)
committerTed Kremenek <kremenek@apple.com>
Thu, 11 Sep 2008 21:15:10 +0000 (21:15 +0000)
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

index e0d53ad93dc849d2d4cdd47b31f8afe900c3f64d..f8d2d8f42bbe4f2c8f95cccd517a6c77b58a1559 100755 (executable)
@@ -271,7 +271,7 @@ sub UpdatePrefix {
     return;
   }
   
-  chop $Prefix while (!($x =~ /^$Prefix/));
+  chop $Prefix while (!($x =~ /^\Q$Prefix/));
 }
 
 sub GetPrefix {