From: Daniel Stenberg Date: Tue, 22 Jan 2013 13:39:50 +0000 (+0100) Subject: memanalyze.pl: handle fopen() of file names with quotes X-Git-Tag: curl-7_29_0~74 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=fa176376c8af90fcce632db63ac691a471577e8e;p=thirdparty%2Fcurl.git memanalyze.pl: handle fopen() of file names with quotes --- diff --git a/tests/memanalyze.pl b/tests/memanalyze.pl index bf53933655..5246349697 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)") { ; }