Skip to content

Commit

Permalink
Merge branch 'c89' into master
Browse files Browse the repository at this point in the history
(cherry picked from commit 63dedca)
  • Loading branch information
kaorut committed Nov 17, 2020
1 parent eaecdd1 commit 247047e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion executable/search_dict_c/src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,10 @@ int main(const int argc, char** const argv)
{
char key[1024] = { 0 };
printf(">> ");
fgets(key, 1024, stdin);
if (!fgets(key, 1024, stdin))
{
continue;
}
chop_line_feed(key);
if (strlen(key) == 0)
{
Expand Down

0 comments on commit 247047e

Please sign in to comment.