summaryrefslogtreecommitdiff
path: root/wk5/pset/speller
diff options
context:
space:
mode:
authorFudgerboy <91767657+Fudgerboy@users.noreply.github.com>2024-04-29 01:47:24 +0000
committerFudgerboy <91767657+Fudgerboy@users.noreply.github.com>2024-04-29 01:47:24 +0000
commit13ef2caef4d5436363d7d025361ad4f08d901d1b (patch)
tree3ebc15c2eea9b3817c2d60dae93563d933d0916e /wk5/pset/speller
parent297cb0af6eb864d0068b536ce58492905b5606dd (diff)
Sun, Apr 28, 2024, 6:47 PM -07:00
Diffstat (limited to 'wk5/pset/speller')
-rw-r--r--wk5/pset/speller/dictionary.c4
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;
}