$depth is set to 0 if $params{depth} is unset, but then $params{depth}
gets used later on, which causes an uninitialized value warning.
So set $params{depth} to whatever $depth was set to.
Signed-off-by: Josh Stompro <stompro@stompro.org>
Signed-off-by: Jason Stephenson <jason@sigio.com>
my %params = %$params;
my $depth = $params{depth} || 0;
+ $params{depth} = $depth; #define $params{depth} if unset, since it gets used later
my $selection_ou = $params{selection_ou} || $params{pickup_lib};
my $oargs = $params{oargs} || {};