summaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorRincewindsHat <12514511+RincewindsHat@users.noreply.github.com>2023-10-19 09:14:23 (GMT)
committerRincewindsHat <12514511+RincewindsHat@users.noreply.github.com>2023-10-19 09:14:23 (GMT)
commit0c92b3908341f41b2202d04efe5fd46f1462dbe3 (patch)
treebf4c87da1134fcad9b5bbc674bd9881cdd0ae17b /plugins
parent47cb10013e6935bb6cdf470925ea5a5f74464646 (diff)
downloadmonitoring-plugins-0c92b3908341f41b2202d04efe5fd46f1462dbe3.tar.gz
check_dbi: Fix compiler warning for uninitialized variable
Diffstat (limited to 'plugins')
-rw-r--r--plugins/check_dbi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/check_dbi.c b/plugins/check_dbi.c
index c24ca24..29c8520 100644
--- a/plugins/check_dbi.c
+++ b/plugins/check_dbi.c
@@ -141,7 +141,7 @@ main (int argc, char **argv)
141 if (verbose > 2) 141 if (verbose > 2)
142 printf ("Initializing DBI\n"); 142 printf ("Initializing DBI\n");
143 143
144 dbi_inst *instance_p; 144 dbi_inst *instance_p = { 0 };
145 145
146 if (dbi_initialize_r(NULL, instance_p) < 0) { 146 if (dbi_initialize_r(NULL, instance_p) < 0) {
147 printf ("UNKNOWN - failed to initialize DBI; possibly you don't have any drivers installed.\n"); 147 printf ("UNKNOWN - failed to initialize DBI; possibly you don't have any drivers installed.\n");