diff options
author | Daniel Friesel <derf@finalrewind.org> | 2015-07-19 17:48:15 +0200 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2015-07-19 17:48:15 +0200 |
commit | 9361286ff8eed87a79a19648bb86b5cd8fdf98f5 (patch) | |
tree | 9a321a5f5a362a69272eded70036280fb1e13041 /bin | |
parent | 303ece4c611fda31debf2f4211a91dc102913c0a (diff) |
bin/efa: Fix undefined array dereference for accessibility options (closes #6)
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/efa | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -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) { |