Set event_path to '' to prevent warnings

This commit is contained in:
Isaac Connor 2019-09-17 10:27:38 -04:00
parent deefa0754d
commit 52c17f9651
1 changed files with 1 additions and 0 deletions

View File

@ -282,6 +282,7 @@ MAIN: while( $loop ) {
}
#Event path is hour/minute/sec
my $event_path = readlink($event_link);
$event_path = '' if ! defined($event_path);
Debug("Checking link $event_link points to: $event_path");
if ( !($event_path and -e $event_path) ) {