summaryrefslogtreecommitdiff
path: root/wk5/pset/speller
diff options
context:
space:
mode:
Diffstat (limited to 'wk5/pset/speller')
-rw-r--r--wk5/pset/speller/dictionary.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/wk5/pset/speller/dictionary.c b/wk5/pset/speller/dictionary.c
index b89d246..b821d2d 100644
--- a/wk5/pset/speller/dictionary.c
+++ b/wk5/pset/speller/dictionary.c
@@ -57,7 +57,7 @@ bool load(const char *dictionary)
while(fscanf(source, "%s", word) != "E0F")
{
// create new node
- char *ptr = malloc(sizefo(node));
+ node *ptr = malloc(sizefo(node));
if (ptr == NULL)
{
fclose(source);