Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fix crash when ignore_dirs is not specified

  • Loading branch information...
commit 70adf46fbdb1c4da16764c2aeddf4f65e83d7985 1 parent 88ff75b
@andygrundman authored
Showing with 7 additions and 6 deletions.
  1. +7 −6 bindings/perl/lib/Media/Scan.pm
View
13 bindings/perl/lib/Media/Scan.pm
@@ -137,12 +137,13 @@ sub new {
$paths = [ $paths ];
}
- $opts->{loglevel} ||= MS_LOG_ERR;
- $opts->{async} ||= 0;
- $opts->{flags} ||= MS_USE_EXTENSION | MS_FULL_SCAN;
- $opts->{paths} = $paths;
- $opts->{ignore} ||= [];
- $opts->{thumbnails} ||= [];
+ $opts->{loglevel} ||= MS_LOG_ERR;
+ $opts->{async} ||= 0;
+ $opts->{flags} ||= MS_USE_EXTENSION | MS_FULL_SCAN;
+ $opts->{paths} = $paths;
+ $opts->{ignore} ||= [];
+ $opts->{ignore_dirs} ||= [];
+ $opts->{thumbnails} ||= [];
if ( ref $opts->{ignore} ne 'ARRAY' ) {
die "ignore must be an array reference";
Please sign in to comment.
Something went wrong with that request. Please try again.