summaryrefslogtreecommitdiffstats
path: root/showdependencygraph.cgi
diff options
context:
space:
mode:
authorByron Jones <bjones@mozilla.com>2012-04-23 10:58:24 +0200
committerByron Jones <bjones@mozilla.com>2012-04-23 10:58:24 +0200
commit47f84fb54d1f6f91f129878970cd526be6b5d3af (patch)
treec58a52a1ed5ed1e97a12d7de2e932721e1988eb1 /showdependencygraph.cgi
parentac72a5044f438feb503431e9a0e0ab788892ff3d (diff)
downloadbugzilla-47f84fb54d1f6f91f129878970cd526be6b5d3af.tar.gz
bugzilla-47f84fb54d1f6f91f129878970cd526be6b5d3af.tar.xz
Bug 747110: fix use of uninitialized value in showdependencygraph.cgi
Diffstat (limited to 'showdependencygraph.cgi')
-rwxr-xr-xshowdependencygraph.cgi3
1 files changed, 2 insertions, 1 deletions
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;
}
}