diff options
author | Fudgerboy <91767657+Fudgerboy@users.noreply.github.com> | 2024-04-28 22:42:00 +0000 |
---|---|---|
committer | Fudgerboy <91767657+Fudgerboy@users.noreply.github.com> | 2024-04-28 22:42:00 +0000 |
commit | 2cd06fd3845cc97ba83422adb261c30751ce92de (patch) | |
tree | 5c8b896d23b5745054c4a40a1e08d294e96c3c19 /wk5/pset/speller | |
parent | 0e96d975b42e76d75a0a1c4c30f09c046e582f5e (diff) |
Sun, Apr 28, 2024, 3:42 PM -07:00
Diffstat (limited to 'wk5/pset/speller')
-rw-r--r-- | wk5/pset/speller/dictionary.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/wk5/pset/speller/dictionary.c b/wk5/pset/speller/dictionary.c index db74939..5476dea 100644 --- a/wk5/pset/speller/dictionary.c +++ b/wk5/pset/speller/dictionary.c @@ -74,8 +74,9 @@ bool load(const char *dictionary) // put new node at begining of bucket if (table(val)->next != NULL) { - ptr->next = table(0)->next; + ptr->next = table(val)->next; } + table(val)->next = *ptr; } /* |