summaryrefslogtreecommitdiff
path: root/wk3/pset/runoff
diff options
context:
space:
mode:
Diffstat (limited to 'wk3/pset/runoff')
-rw-r--r--wk3/pset/runoff/runoff.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/wk3/pset/runoff/runoff.c b/wk3/pset/runoff/runoff.c
index ae69ce3..a959a2c 100644
--- a/wk3/pset/runoff/runoff.c
+++ b/wk3/pset/runoff/runoff.c
@@ -169,6 +169,7 @@ bool print_winner(void)
if (candidates[i].votes > (voter_count / 2))
{
printf("%s\n", candidates[i].name);
+ return true;
}
}
return false;