summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2018-12-16 11:13:47 +0100
committerDaniel Friesel <derf@finalrewind.org>2018-12-16 11:13:47 +0100
commit15f374cebb5ae73c9e7625a4e5de88a3c23207cf (patch)
tree885e25775196149fba2cdd8111d3598882a4ee20
parent6bff81b2010b1c9efef8044a1ffa34c544a6f65b (diff)
Fix uninitialized value when encountering unknown platforms
-rw-r--r--index.pl2
1 files changed, 1 insertions, 1 deletions
diff --git a/index.pl b/index.pl
index c3da8c7..7bf6e5f 100644
--- a/index.pl
+++ b/index.pl
@@ -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;