Skip to content

Commit

Permalink
propogate error from getch() on failure
Browse files Browse the repository at this point in the history
  • Loading branch information
ppannuto committed Jul 24, 2023
1 parent b23adf0 commit c03e109
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/tests/kv_interactive/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ static int get_command(void) {

if (c == RETURNCODE_FAIL) {
printf("\ngetch() failed!\n");
return 0;
return c;

} else {
char in = c;
Expand Down

0 comments on commit c03e109

Please sign in to comment.