diff options
Diffstat (limited to 'wk5/pset/speller')
-rw-r--r-- | wk5/pset/speller/dictionary.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/wk5/pset/speller/dictionary.c b/wk5/pset/speller/dictionary.c index d5b0ac6..626e965 100644 --- a/wk5/pset/speller/dictionary.c +++ b/wk5/pset/speller/dictionary.c @@ -38,6 +38,10 @@ bool check(const char *word) return true; } // move on to next node + if (current->next == NULL) + { + return false; + } current = current->next; } |