Fix missing assignment in C template