diff --git a/utils/Burg/be.c b/utils/Burg/be.c index defe948d2db..303f9406fa3 100644 --- a/utils/Burg/be.c +++ b/utils/Burg/be.c @@ -414,7 +414,7 @@ makeCostArray() fprintf(outfile, "short %s_cost[][%d] = {\n", prefix, DELTAWIDTH); for (i = 0; i <= max_erule_num; i++) { - makeCostVector(pVector[i], pVector[i] ? pVector[i]->rule->delta : 0); + makeCostVector(pVector[i] != 0, pVector[i] ? pVector[i]->rule->delta : 0); fprintf(outfile, ", /* "); printRule(pVector[i], "(none)"); fprintf(outfile, " = %d */\n", i); diff --git a/utils/Burg/closure.c b/utils/Burg/closure.c index 70e16264ebb..c424c5796a1 100644 --- a/utils/Burg/closure.c +++ b/utils/Burg/closure.c @@ -31,7 +31,7 @@ zero(t) Item_Set t; int i; DeltaCost base; int exists; - int base_nt; + int base_nt = 0; assert(!t->closed);