summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2016-04-06 20:24:50 -0400
committermidipix <writeonce@midipix.org>2016-04-06 20:40:35 -0400
commit94d109fa418c024c214a50d645624e2e2935e6d1 (patch)
tree0cb4e1bce34311625833e981ff8c7cb00d64ac22 /src
parent1142bf2e13f411cf967c1ed8b4060d7829eb13bb (diff)
downloadslibtool-94d109fa418c024c214a50d645624e2e2935e6d1.tar.bz2
slibtool-94d109fa418c024c214a50d645624e2e2935e6d1.tar.xz
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.
Diffstat (limited to 'src')
-rw-r--r--src/driver/slbt_driver_ctx.c2
1 files changed, 1 insertions, 1 deletions
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)