mirror of https://github.com/mikaku/Monitorix.git
fix the use of an uninitialized variable if the configuration file supplied doesn't exist
This commit is contained in:
parent
639e412e59
commit
9fa1c0659f
|
@ -462,7 +462,7 @@ if(!$options{c}) {
|
||||||
usage();
|
usage();
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
$options{c} = abs_path($options{c}) unless $^V lt 5.6.2;
|
$options{c} = (abs_path($options{c}) || $options{c}) unless $^V lt 5.6.2;
|
||||||
if(!stat($options{c})) {
|
if(!stat($options{c})) {
|
||||||
die "can't open file '$options{c}': $!";
|
die "can't open file '$options{c}': $!";
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue