aboutsummaryrefslogtreecommitdiff
path: root/scripts/check-peak-detection
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/check-peak-detection')
-rwxr-xr-xscripts/check-peak-detection6
1 files changed, 5 insertions, 1 deletions
diff --git a/scripts/check-peak-detection b/scripts/check-peak-detection
index 8f2e1378..7d63ccb5 100755
--- a/scripts/check-peak-detection
+++ b/scripts/check-peak-detection
@@ -36,7 +36,11 @@ if ( !($args eq "") ) {
open(FH, $file);
open(TMP, "> list.tmp");
-my $statbuf = stat($ARGV[0]);
+my $statbuf = stat($file);
+if ( not $statbuf ) {
+ printf("Couldn't stat stream. Check the filename.\n");
+ exit;
+}
my $stream_mtime = $statbuf->mtime;
my $in_image = 0;