diff options
author | Daniel Friesel <derf@finalrewind.org> | 2018-12-16 11:13:47 +0100 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2018-12-16 11:13:47 +0100 |
commit | 15f374cebb5ae73c9e7625a4e5de88a3c23207cf (patch) | |
tree | 885e25775196149fba2cdd8111d3598882a4ee20 | |
parent | 6bff81b2010b1c9efef8044a1ffa34c544a6f65b (diff) |
Fix uninitialized value when encountering unknown platforms
-rw-r--r-- | index.pl | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -459,7 +459,7 @@ sub handle_request { } for my $result (@results) { - my $platform = ( split( / /, $result->platform ) )[0]; + my $platform = ( split( qr{ }, $result->platform // '' ) )[0]; my $line = $result->line; my $train_type = $result->type; my $delay = $result->delay; |