>>static const struct ibdiag_opt *opts_map[256]; >> >>and later: >> >> memset(opts_map, 0, sizeof(opts_map)); And on second thought... can we just drop the memset completely?