[Mon-commit] mon mon,1.17,1.18
Brought to you by:
trockij
|
From: David N. <vi...@us...> - 2005-11-07 15:37:22
|
Update of /cvsroot/mon/mon In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv6826 Modified Files: mon Log Message: Fixed a bug where config file parsing was using 'if ($args)' to test to see if a value was passed, where $args could be 0. Use defined instead. Index: mon =================================================================== RCS file: /cvsroot/mon/mon/mon,v retrieving revision 1.17 retrieving revision 1.18 diff -C2 -d -r1.17 -r1.18 *** mon 11 Oct 2005 10:58:57 -0000 1.17 --- mon 7 Nov 2005 15:37:13 -0000 1.18 *************** *** 1130,1134 **** } elsif ($1 eq "unack_summary") { ! if ($2) { if ($2 =~ /y(es)?/i) { $2 = 1; --- 1130,1134 ---- } elsif ($1 eq "unack_summary") { ! if (defined $2) { if ($2 =~ /y(es)?/i) { $2 = 1; *************** *** 1697,1701 **** elsif ($var eq "unack_summary") { ! if ($args) { if ($args =~ /y(es)?/i) { $args = 1; --- 1697,1701 ---- elsif ($var eq "unack_summary") { ! if (defined $args) { if ($args =~ /y(es)?/i) { $args = 1; |