diff options
author | Lorenz Kästle <12514511+RincewindsHat@users.noreply.github.com> | 2023-11-22 23:34:59 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-22 23:34:59 +0100 |
commit | 53a15f0c2c59a06f2d4f8f07c6b579b7d5272de3 (patch) | |
tree | 5e2e7e5f0103298390cecd1f867fd4da7caa7d47 /plugins/check_dbi.c | |
parent | f1e91405c3b51641b02228672c47e2b4aa1dd5f1 (diff) | |
parent | 7ba8463506b3d246c246a0caa0d78f0d16b321c6 (diff) | |
download | monitoring-plugins-53a15f0.tar.gz |
Merge pull request #1951 from RincewindsHat/compiler_warnings_maybe_unused
Fix compiler warning for uninitialized variable
Diffstat (limited to 'plugins/check_dbi.c')
-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"); |