+

Added initial value to options variables to avoid error at line 110

Benjamin Renard [2011-05-13 13:11:27]
Added initial value to options variables to avoid error at line 110
Filename
check_smart
diff --git a/check_smart b/check_smart
index 741b1c4..6549c57 100644
--- a/check_smart
+++ b/check_smart
@@ -46,7 +46,7 @@ if ($opt_h) {
 	print_help();
 	exit $ERRORS{'OK'};
 }
-my ($device, $interface, $number) = qw//;
+my ($device, $interface, $number) = qw/0 0 0/;
 if ($opt_d) {
 	unless($opt_i){
 		print "must specify an interface for $opt_d using -i/--interface!\n\n";
ViewGit