From 0c92b3908341f41b2202d04efe5fd46f1462dbe3 Mon Sep 17 00:00:00 2001 From: RincewindsHat <12514511+RincewindsHat@users.noreply.github.com> Date: Thu, 19 Oct 2023 11:14:23 +0200 Subject: check_dbi: Fix compiler warning for uninitialized variable --- plugins/check_dbi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) if (verbose > 2) printf ("Initializing DBI\n"); - dbi_inst *instance_p; + dbi_inst *instance_p = { 0 }; if (dbi_initialize_r(NULL, instance_p) < 0) { printf ("UNKNOWN - failed to initialize DBI; possibly you don't have any drivers installed.\n"); -- cgit v1.2.3-74-g34f1