|
From: <sv...@va...> - 2007-09-17 22:01:18
|
Author: njn
Date: 2007-09-17 23:01:14 +0100 (Mon, 17 Sep 2007)
New Revision: 6851
Log:
minor tweak
Modified:
trunk/cachegrind/cg_annotate.in
Modified: trunk/cachegrind/cg_annotate.in
===================================================================
--- trunk/cachegrind/cg_annotate.in 2007-09-17 12:52:10 UTC (rev 6850)
+++ trunk/cachegrind/cg_annotate.in 2007-09-17 22:01:14 UTC (rev 6851)
@@ -747,9 +747,9 @@
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;
|