summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2015-07-19 17:48:15 +0200
committerDaniel Friesel <derf@finalrewind.org>2015-07-19 17:48:15 +0200
commit9361286ff8eed87a79a19648bb86b5cd8fdf98f5 (patch)
tree9a321a5f5a362a69272eded70036280fb1e13041 /bin
parent303ece4c611fda31debf2f4211a91dc102913c0a (diff)
bin/efa: Fix undefined array dereference for accessibility options (closes #6)
Diffstat (limited to 'bin')
-rwxr-xr-xbin/efa6
1 files changed, 4 insertions, 2 deletions
diff --git a/bin/efa b/bin/efa
index ffa7e2b..61e7106 100755
--- a/bin/efa
+++ b/bin/efa
@@ -235,8 +235,10 @@ GetOptions(
) or show_help(1);
#>>>
-@{ $opt->{accessibility} }
- = split( qr{,}, join( q{,}, @{ $opt->{accessibility} } ) );
+if ( $opt->{accessibility} ) {
+ @{ $opt->{accessibility} }
+ = split( qr{,}, join( q{,}, @{ $opt->{accessibility} } ) );
+}
for my $field ( @{ $opt->{accessibility} } ) {
given ($field) {