From 94d109fa418c024c214a50d645624e2e2935e6d1 Mon Sep 17 00:00:00 2001 From: midipix Date: Apr 07 2016 00:40:35 +0000 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. --- 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)