collate->all_patches = NULL;
/* This tells us no UNDEFINED entry was found until now. */
- collate->undefined.this_weight = 0;
+ memset (&collate->undefined, '\0', sizeof (collate->undefined));
lr->translate_strings = 0;
}
information. While reading them they get inserted in the \
table and later not removed when something goes wrong with \
reading its weights. */ \
- { \
- value += 1 + runp->ordering[cnt]; \
+ value += 1 + runp->ordering[cnt]; \
\
- if (runp->name[1] == L'\0') \
- has_simple = runp; \
- } \
+ if (runp->name[1] == L'\0') \
+ has_simple = runp; \
\
ADD_ELEMENT (runp, value); \
} \
|| collate->kind == undefined);
/* Fill in the missing weights. */
- while (++collate->weight_idx < collate->nrules)
+ while (collate->weight_idx++ < collate->nrules)
{
collate->weight[collate->nweight++] = pelem->this_weight;
++collate->weight_cnt[collate->weight_idx];