From 14691615ea47dd30f03db73505f3f493c202e512 Mon Sep 17 00:00:00 2001 From: midipix Date: Apr 07 2016 00:42:31 +0000 Subject: driver: slbt_init_link_params(): explicitly initialize the 'prefix' variable. This addresses a compiler false positive identification of a missing variable initialization. Note that access to 'prefix' is preceded by the following check: if (!libname) return 0; and that all code paths which include an initialization of 'libname' also entail the initialization of 'prefix'. --- diff --git a/src/driver/slbt_driver_ctx.c b/src/driver/slbt_driver_ctx.c index 73c0e15..c6a11f9 100644 --- a/src/driver/slbt_driver_ctx.c +++ b/src/driver/slbt_driver_ctx.c @@ -456,6 +456,7 @@ static int slbt_init_link_params(struct slbt_driver_ctx_impl * ctx) program = argv_program_name(ctx->cctx.targv[0]); libname = 0; + prefix = 0; /* output */ if (!(ctx->cctx.output)) {