]> git.koha-community.org Git - koha.git/commit
Bug 20056: Resolve uninitialized warn in cmp_sysprefs.pl
authorMarcel de Rooy <m.de.rooy@rijksmuseum.nl>
Mon, 22 Jan 2018 08:49:36 +0000 (09:49 +0100)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Tue, 30 Jan 2018 17:21:27 +0000 (14:21 -0300)
commit20e89d051c9ca3def36e9cde742ea10fd59204aa
treeea8fc88a06e4b77b3eb94b22f7c2ff33dbacb026
parente1ba582af9c93a96870365be2fd1609621567a2e
Bug 20056: Resolve uninitialized warn in cmp_sysprefs.pl

When running a compare with --upd flag, I got the following warn:
    Use of uninitialized value in addition (+) at misc/maintenance/cmp_sysprefs.pl line 125.
This is simply resolved by not returning undef but 0 in case of the Version
syspref in the sub UpdateOnePref.

Test plan:
Look at this simple change.

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Mark Tompsett <mtompset@hotmail.com>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
misc/maintenance/cmp_sysprefs.pl