From fa176376c8af90fcce632db63ac691a471577e8e Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Tue, 22 Jan 2013 14:39:50 +0100 Subject: memanalyze.pl: handle fopen() of file names with quotes --- tests/memanalyze.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests/memanalyze.pl') 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, , et al. +# Copyright (C) 1998 - 2013, 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 @@ -266,7 +266,7 @@ while() { $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)") { ; } -- cgit v1.2.3