summaryrefslogtreecommitdiffstats
path: root/plugins/t
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/t')
0 files changed, 0 insertions, 0 deletions
diff --git a/plugins/check_pgsql.c b/plugins/check_pgsql.c
index 8d60701..324bd5f 100644
--- a/plugins/check_pgsql.c
+++ b/plugins/check_pgsql.c
@@ -258,7 +258,7 @@ main (int argc, char **argv)
258 if (verbose) 258 if (verbose)
259 printf("Closing connection\n"); 259 printf("Closing connection\n");
260 PQfinish (conn); 260 PQfinish (conn);
261 return (query_status > status) ? query_status : status; 261 return (pgquery && query_status > status) ? query_status : status;
262} 262}
263 263
264 264