diff options
author | RincewindsHat <12514511+RincewindsHat@users.noreply.github.com> | 2023-10-19 11:14:23 +0200 |
---|---|---|
committer | RincewindsHat <12514511+RincewindsHat@users.noreply.github.com> | 2023-10-19 11:14:23 +0200 |
commit | 0c92b3908341f41b2202d04efe5fd46f1462dbe3 (patch) | |
tree | bf4c87da1134fcad9b5bbc674bd9881cdd0ae17b /plugins | |
parent | 47cb10013e6935bb6cdf470925ea5a5f74464646 (diff) | |
download | monitoring-plugins-0c92b3908341f41b2202d04efe5fd46f1462dbe3.tar.gz |
check_dbi: Fix compiler warning for uninitialized variable
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/check_dbi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/check_dbi.c b/plugins/check_dbi.c index c24ca248..29c85206 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"); |