Finally fix the bug in -D

This commit is contained in:
Dale Weiler 2012-12-17 15:46:07 +00:00
parent f7bc1dca08
commit c1a4c8102e

14
main.c
View file

@ -637,13 +637,15 @@ int main(int argc, char **argv) {
util_debug("COM", "starting ...\n");
/* add macros */
for (itr = 0; itr < vec_size(ppems); itr++) {
ftepp_add_macro(ppems[itr].name, ppems[itr].value);
mem_d(ppems[itr].name);
if (opts.pp_only || OPTS_FLAG(FTEPP)) {
for (itr = 0; itr < vec_size(ppems); itr++) {
ftepp_add_macro(ppems[itr].name, ppems[itr].value);
mem_d(ppems[itr].name);
/* can be null */
if (ppems[itr].value)
mem_d(ppems[itr].value);
/* can be null */
if (ppems[itr].value)
mem_d(ppems[itr].value);
}
}
if (!vec_size(items)) {