firasuke / cross / slibtool

Forked from cross/slibtool 6 months ago
Clone

94d109 driver: slbt_split_argv(): add missing variable initialization.

Authored and Committed by midipix 8 years ago
    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.
    
        
file modified
+1 -1
src/driver/slbt_driver_ctx.c CHANGED
@@ -171,7 +171,7 @@ static int slbt_split_argv(
171
171
argv[ctx.unitidx] = compiler;
172
172
173
173
/* missing both --mode and --config? */
174
- for (mode=0, entry=meta->entries; entry->fopt; entry++)
174
+ for (mode=0, config=0, entry=meta->entries; entry->fopt; entry++)
175
175
if (entry->tag == TAG_MODE)
176
176
mode = entry;
177
177
else if (entry->tag == TAG_CONFIG)