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 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) 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 v0.10-9-g596f