From: Nicholas Nethercote Date: Mon, 17 Sep 2007 22:01:14 +0000 (+0000) Subject: minor tweak X-Git-Tag: svn/VALGRIND_3_3_0~211 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8cdbb6e02fad215299eaa85d70f929f5fc0aef84;p=thirdparty%2Fvalgrind.git minor tweak git-svn-id: svn://svn.valgrind.org/valgrind/trunk@6851 --- diff --git a/cachegrind/cg_annotate.in b/cachegrind/cg_annotate.in index 35f26326d9..cb7e17e7a3 100644 --- a/cachegrind/cg_annotate.in +++ b/cachegrind/cg_annotate.in @@ -747,9 +747,9 @@ sub annotate_ann_files($) my $opened_file = ""; my $full_file_name = ""; - # We first try it with the empty include_dir, in case the filename has - # the full path. - foreach my $include_dir ("", @include_dirs) { + # Nb: include_dirs already includes "", so it works in the case + # where the filename has the full path. + foreach my $include_dir (@include_dirs) { my $try_name = $include_dir . $src_file; if (open(INPUTFILE, "< $try_name")) { $opened_file = $try_name;