diff options
author | Daniel Stenberg <daniel@haxx.se> | 2013-01-22 14:39:50 +0100 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2013-01-22 15:19:12 +0100 |
commit | fa176376c8af90fcce632db63ac691a471577e8e (patch) | |
tree | 8799f823f89c66986cf71fd46dde61fb48ae77db | |
parent | efe46566566d9d651f297041f39c057de588b329 (diff) |
memanalyze.pl: handle fopen() of file names with quotes
-rwxr-xr-x | tests/memanalyze.pl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/memanalyze.pl b/tests/memanalyze.pl index bf5393365..524634969 100755 --- a/tests/memanalyze.pl +++ b/tests/memanalyze.pl @@ -6,7 +6,7 @@ # | (__| |_| | _ <| |___ # \___|\___/|_| \_\_____| # -# Copyright (C) 1998 - 2011, Daniel Stenberg, <daniel@haxx.se>, et al. +# Copyright (C) 1998 - 2013, 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 @@ -266,7 +266,7 @@ while(<FILE>) { $linenum = $2; $function = $3; - if($function =~ /f[d]*open\(\"([^\"]*)\",\"([^\"]*)\"\) = (\(nil\)|0x([0-9a-f]*))/) { + if($function =~ /f[d]*open\(\"(.*)\",\"([^\"]*)\"\) = (\(nil\)|0x([0-9a-f]*))/) { if($3 eq "(nil)") { ; } |