Eliminate a bad code smell.

This commit is contained in:
Eric S. Raymond 2023-02-28 06:45:24 -05:00
parent aa32e8f4d6
commit 20859304c0

View file

@ -126,8 +126,8 @@ void terminate(enum termination mode)
for (int i = 1; i <= (int)NCLASSES; i++) {
if (classes[i].threshold >= points) {
speak(classes[i].message);
i = classes[i].threshold + 1 - points;
rspeak(NEXT_HIGHER, i, i);
int nxt = classes[i].threshold + 1 - points;
rspeak(NEXT_HIGHER, nxt, nxt);
exit(EXIT_SUCCESS);
}
}