summaryrefslogtreecommitdiff
path: root/wk5/pset/speller/dictionary.c
diff options
context:
space:
mode:
authorFudgerboy <91767657+Fudgerboy@users.noreply.github.com>2024-04-28 22:23:08 +0000
committerFudgerboy <91767657+Fudgerboy@users.noreply.github.com>2024-04-28 22:23:08 +0000
commit759d668ccaaeda057a973b9a4c0423a232576497 (patch)
treeccd032ba307ac131350f270b6e2ffa7404264ce7 /wk5/pset/speller/dictionary.c
parent0dca0589c450a4d6605f6cb37e7e13feccbb4c7d (diff)
Sun, Apr 28, 2024, 3:23 PM -07:00
Diffstat (limited to 'wk5/pset/speller/dictionary.c')
-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);