fix the use of an uninitialized variable if the configuration file supplied doesn't exist

This commit is contained in:
Jordi Sanfeliu 2018-07-06 09:06:59 +02:00
parent 639e412e59
commit 9fa1c0659f
1 changed files with 1 additions and 1 deletions

View File

@ -462,7 +462,7 @@ if(!$options{c}) {
usage();
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})) {
die "can't open file '$options{c}': $!";
}