From 93f14a38191f272a313348f4091a3236705e749c Mon Sep 17 00:00:00 2001 From: Greg Sabino Mullane Date: Tue, 8 Apr 2008 10:22:04 -0400 Subject: [PATCH] Typo: arg should be db for empty query check. --- check_postgres.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/check_postgres.pl b/check_postgres.pl index 6ce924f60..9e04145ef 100755 --- a/check_postgres.pl +++ b/check_postgres.pl @@ -757,7 +757,7 @@ sub run_command { $db->{ok} = 1; ## Allow an empty query (no matching rows) if requested - if ($arg->{emptyok} and $arg->{slurp} =~ /^\s*$/o) { + if ($arg->{emptyok} and $db->{slurp} =~ /^\s*$/o) { } ## If we were provided with a regex, check and bail if it fails elsif ($arg->{regex}) { -- 2.39.5