[open-ils-commits] [GIT] Evergreen ILS branch master updated. 3e3ec8ec68bdc49eb43a6dedc187c3c90a3813cc
Evergreen Git
git at git.evergreen-ils.org
Mon Mar 4 11:25:28 EST 2019
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Evergreen ILS".
The branch, master has been updated
via 3e3ec8ec68bdc49eb43a6dedc187c3c90a3813cc (commit)
from d1e58bbe6dd32d65f2f20d52607eafa36e01e20e (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 3e3ec8ec68bdc49eb43a6dedc187c3c90a3813cc
Author: Josh Stompro <stompro at stompro.org>
Date: Mon Mar 4 08:57:02 2019 -0600
LP#1667497 - Define $params{depth} to avoid uninitialized warning.
$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 at stompro.org>
Signed-off-by: Jason Stephenson <jason at sigio.com>
diff --git a/Open-ILS/src/perlmods/lib/OpenILS/Application/Circ/Holds.pm b/Open-ILS/src/perlmods/lib/OpenILS/Application/Circ/Holds.pm
index 77868503f3..1e57e9abd0 100644
--- a/Open-ILS/src/perlmods/lib/OpenILS/Application/Circ/Holds.pm
+++ b/Open-ILS/src/perlmods/lib/OpenILS/Application/Circ/Holds.pm
@@ -2381,6 +2381,7 @@ sub check_title_hold {
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} || {};
-----------------------------------------------------------------------
Summary of changes:
Open-ILS/src/perlmods/lib/OpenILS/Application/Circ/Holds.pm | 1 +
1 file changed, 1 insertion(+)
hooks/post-receive
--
Evergreen ILS
More information about the open-ils-commits
mailing list