diff options
Diffstat (limited to 'wk5/pset')
-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 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 |