(rtvec_alloc): Clear rtwint instead of rtvec.

From-SVN: r13172
This commit is contained in:
Richard Kenner 1996-11-15 14:13:13 -05:00
parent cc38a1c3dd
commit 395d53bb1e

View File

@ -196,9 +196,10 @@ rtvec_alloc (n)
+ (( n - 1) * sizeof (rtunion))); + (( n - 1) * sizeof (rtunion)));
/* clear out the vector */ /* clear out the vector */
PUT_NUM_ELEM(rt, n); PUT_NUM_ELEM (rt, n);
for (i=0; i < n; i++)
rt->elem[i].rtvec = NULL; /* @@ not portable due to rtunion */ for (i = 0; i < n; i++)
rt->elem[i].rtwint = 0;
return rt; return rt;
} }