# HG changeset patch # User Christian Arnold # Date 1305205560 -7200 # Node ID 3ce34c10c732d2b7b454d63832d00bdcc4456785 # Parent c6e374ba7961bfc1acb347c42e4bedb48738c2fe fixing (uninitialized value in split line 77) problem diff -r c6e374ba7961 -r 3ce34c10c732 check_zarafa.pl --- a/check_zarafa.pl Thu May 12 14:39:14 2011 +0200 +++ b/check_zarafa.pl Thu May 12 15:06:00 2011 +0200 @@ -74,7 +74,11 @@ my @webside = (); my $last_verbose = ""; - push @webside, split( "\n", get($url) ); + my $side = get($url); + + return "can't get $url" if ( !$side ); + + push @webside, split( "\n", $side ); foreach (@webside) { /$search/ or next; $last_verbose = $1 and last; diff -r c6e374ba7961 -r 3ce34c10c732 debian/changelog --- a/debian/changelog Thu May 12 14:39:14 2011 +0200 +++ b/debian/changelog Thu May 12 15:06:00 2011 +0200 @@ -1,3 +1,9 @@ +nagios-plugin-zarafa (0.2) lenny squeeze; urgency=low + + * fixing (uninitialized value in split line 77) problem + + -- Christian Arnold Thu, 12 May 2011 15:02:42 +0200 + nagios-plugin-zarafa (0.1) lenny squeeze; urgency=low * Initial Release.