Simplify populate_candidates() in C version of code
 - Match other versions