From 94d109fa418c024c214a50d645624e2e2935e6d1 Mon Sep 17 00:00:00 2001 From: midipix Date: Wed, 6 Apr 2016 20:24:50 -0400 Subject: driver: slbt_split_argv(): add missing variable initialization. of the three compilers in use (gcc 5.3.0, clang 3.6.2, cparser 1.22.1), the missing initialization was only spotted by cparser. --- src/driver/slbt_driver_ctx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/driver') diff --git a/src/driver/slbt_driver_ctx.c b/src/driver/slbt_driver_ctx.c index f81133e..73c0e15 100644 --- a/src/driver/slbt_driver_ctx.c +++ b/src/driver/slbt_driver_ctx.c @@ -171,7 +171,7 @@ static int slbt_split_argv( argv[ctx.unitidx] = compiler; /* missing both --mode and --config? */ - for (mode=0, entry=meta->entries; entry->fopt; entry++) + for (mode=0, config=0, entry=meta->entries; entry->fopt; entry++) if (entry->tag == TAG_MODE) mode = entry; else if (entry->tag == TAG_CONFIG) -- cgit v1.2.3