struct tally *tally;
/* There is always 1 bucket. */
struct tally *tally;
/* There is always 1 bucket. */
/* Overly cautious check for overflow. */
/* Overly cautious check for overflow. */
- if (sizeof(*tally) * buckets / sizeof(*tally) != buckets)
+ if (sizeof(*tally) * buckets / sizeof(*tally) != buckets) {
tally = (struct tally *)malloc(
sizeof(*tally) + sizeof(tally->counts[0])*(buckets-1));
if (tally == NULL) {
tally = (struct tally *)malloc(
sizeof(*tally) + sizeof(tally->counts[0])*(buckets-1));
if (tally == NULL) {