summaryrefslogtreecommitdiff
path: root/wk5/pset/speller/dictionary.c
diff options
context:
space:
mode:
authorFudgerboy <91767657+Fudgerboy@users.noreply.github.com>2024-04-28 22:42:00 +0000
committerFudgerboy <91767657+Fudgerboy@users.noreply.github.com>2024-04-28 22:42:00 +0000
commit2cd06fd3845cc97ba83422adb261c30751ce92de (patch)
tree5c8b896d23b5745054c4a40a1e08d294e96c3c19 /wk5/pset/speller/dictionary.c
parent0e96d975b42e76d75a0a1c4c30f09c046e582f5e (diff)
Sun, Apr 28, 2024, 3:42 PM -07:00
Diffstat (limited to 'wk5/pset/speller/dictionary.c')
-rw-r--r--wk5/pset/speller/dictionary.c3
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;
}
/*