projects
/
check_postgres.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ad1e1ed
)
Check for existence of fatalregex hash key before using it.
author
Greg Sabino Mullane
<
[email protected]
>
Fri, 10 Jul 2009 16:15:34 +0000
(12:15 -0400)
committer
Greg Sabino Mullane
<
[email protected]
>
Fri, 10 Jul 2009 16:15:34 +0000
(12:15 -0400)
check_postgres.pl
patch
|
blob
|
blame
|
history
diff --git
a/check_postgres.pl
b/check_postgres.pl
index 1cf302e930edcd368cda6b0853f46869ee721c1a..9f4bdb1ca02fd225019b21cbee89aeb612c4dee2 100755
(executable)
--- a/
check_postgres.pl
+++ b/
check_postgres.pl
@@
-1650,7
+1650,7
@@
sub run_command {
}
if ($db->{error} =~ /FATAL/) {
- if ($db->{error} =~ /$arg->{fatalregex}/) {
+ if (
exists $arg->{fatalregex} and
$db->{error} =~ /$arg->{fatalregex}/) {
$info->{fatalregex} = $db->{error};
next;
}