]> 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)
committerNick Clemens <nick@bywatersolutions.com>
Fri, 2 Feb 2018 15:07:23 +0000 (15:07 +0000)
commit8f4b2b7b37221e626d45263090ce9f8cce0247aa
tree18e98028d5963c1b68ad0228e4170183dfdc5633
parent3c5a561cfc156b4d465d25ca03d9a3d11b09d23d
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>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
misc/maintenance/cmp_sysprefs.pl