diff options
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; } /* |