summaryrefslogtreecommitdiff
path: root/wk5/pset
diff options
context:
space:
mode:
authorFudgerboy <91767657+Fudgerboy@users.noreply.github.com>2024-04-28 23:37:39 +0000
committerFudgerboy <91767657+Fudgerboy@users.noreply.github.com>2024-04-28 23:37:39 +0000
commitfbb38baa489ccd648d05c381d5c94ed948c5a726 (patch)
treea335e884b15d224aafc35261dd7dd757a06bf3ce /wk5/pset
parentb2b75992470b0116823b402c1f6d4dc21c73c463 (diff)
Sun, Apr 28, 2024, 4:37 PM -07:00
Diffstat (limited to 'wk5/pset')
-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 aa707a6..2cd5256 100644
--- a/wk5/pset/speller/dictionary.c
+++ b/wk5/pset/speller/dictionary.c
@@ -3,6 +3,7 @@
#include <ctype.h>
#include <stdbool.h>
#include <stdio.h>
+#include <stdlib.h>
#include "dictionary.h"
// Represents a node in a hash table
@@ -113,7 +114,7 @@ bool unload(void)
for (int i = 0; i < N; i++)
{
// while there's more in the bucket
- node *current = table(i);
+ node *current = table;
while (current != NULL)
{
// record position of this node