From 4b356cda5ff1b5a4285a38f9ad8dd6a990186950 Mon Sep 17 00:00:00 2001 From: Fudgerboy <91767657+Fudgerboy@users.noreply.github.com> Date: Mon, 29 Apr 2024 01:57:41 +0000 Subject: Sun, Apr 28, 2024, 6:57 PM -07:00 --- wk5/pset/speller/dictionary.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wk5/pset/speller/dictionary.c b/wk5/pset/speller/dictionary.c index 626e965..fd3d893 100644 --- a/wk5/pset/speller/dictionary.c +++ b/wk5/pset/speller/dictionary.c @@ -80,7 +80,7 @@ bool load(const char *dictionary) siz++; // create new node // use malloc - node *ptr = malloc(sizeof(node)); + node *ptr = calloc(sizeof(node)); // check if return is NULL if (ptr == NULL) { -- cgit v1.2.3