From 47f84fb54d1f6f91f129878970cd526be6b5d3af Mon Sep 17 00:00:00 2001 From: Byron Jones Date: Mon, 23 Apr 2012 16:58:24 +0800 Subject: Bug 747110: fix use of uninitialized value in showdependencygraph.cgi --- showdependencygraph.cgi | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'showdependencygraph.cgi') diff --git a/showdependencygraph.cgi b/showdependencygraph.cgi index 0726760b9..842b4c092 100755 --- a/showdependencygraph.cgi +++ b/showdependencygraph.cgi @@ -311,7 +311,8 @@ foreach my $f (@files) # symlinks), this can't escape to delete anything it shouldn't # (unless someone moves the location of $webdotdir, of course) trick_taint($f); - if (file_mod_time($f) < $since) { + my $mtime = file_mod_time($f); + if ($mtime && $mtime < $since) { unlink $f; } } -- cgit v1.2.3-24-g4f1b