Skip to content

Commit

Permalink
Merge pull request #27 from alpheratz0/patch-else-if
Browse files Browse the repository at this point in the history
add missing `else` to `if ... else if ...` chain
  • Loading branch information
rexim authored Jul 30, 2022
2 parents c69e5d6 + c8fc441 commit 3de0045
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.c
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ int main(int argc, char **argv)
for (int i = 1; i < argc; ++i) {
if (strcmp(argv[i], "-p") == 0) {
paused = 1;
} if (strcmp(argv[i], "-e") == 0) {
} else if (strcmp(argv[i], "-e") == 0) {
exit_after_countdown = 1;
} else if (strcmp(argv[i], "clock") == 0) {
mode = MODE_CLOCK;
Expand Down

0 comments on commit 3de0045

Please sign in to comment.