[PATCH] verify_blkparse: proper check of file given
authorJens Axboe <axboe@suse.de>
Wed, 28 Sep 2005 12:52:06 +0000 (14:52 +0200)
committerJens Axboe <axboe@suse.de>
Wed, 28 Sep 2005 12:52:06 +0000 (14:52 +0200)
verify_blkparse

index bd6a4fb51dafa95a7c2573837c9420ef5337c088..ddbcada302156e8ef264c9a2f85d5013764df2a1 100755 (executable)
@@ -5,6 +5,10 @@
 // Parse time correctness of blkparse output
 // Thomas Kenne <thomas@2ndfloor.dk>
 
+if (!isset($argv[1])) {
+       die("need file as argument\n");
+}
+
 $file = $argv[1];
 
 if (!is_file($file)) {