perf/aggregate: fix checking ENV{GIT_PERF_SUBSECTION}
The way we check ENV{GIT_PERF_SUBSECTION} could trigger comparison between undef and "" that may be flagged by use of strict & warnings. Let's fix that. Signed-off-by: Christian Couder <chriscool@tuxfamily.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Christian Couder committed
Jan 5, 2018 at 10:12 UTC
6f5ecad6a5566ac8dfb30c58330d53ef6cd5ad03
1 file changed
+1
-1
t/perf/aggregate.perl
+1
-1
@@ -70,7 +70,7 @@ if (not @tests) {
70
}
71
72
my $resultsdir = "test-results";
73
-if ($ENV{GIT_PERF_SUBSECTION} ne "") {
73
+if (exists $ENV{GIT_PERF_SUBSECTION} and $ENV{GIT_PERF_SUBSECTION} ne "") {
74
$resultsdir .= "/" . $ENV{GIT_PERF_SUBSECTION};
75
}
76