From 2d57573327e7b01306efcd930a565901db805eb8 Mon Sep 17 00:00:00 2001 From: Andrea Smith Date: Mon, 5 Oct 2020 20:13:47 -0500 Subject: Moved tempNode2 assignment --- P1/src/mapper.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/P1/src/mapper.c b/P1/src/mapper.c index 8ba14a1..9d0a5e4 100644 --- a/P1/src/mapper.c +++ b/P1/src/mapper.c @@ -104,12 +104,12 @@ void writeIntermediateDS() { intermediateDS *root = &DS; intermediateDS *tempNode = root -> next; - valueList *tempNode2 = tempNode -> value; + // valueList *tempNode2 = tempNode -> value; while(tempNode != NULL) { // Get string of 1's associated with the word char ones[BUFFSIZE]= ""; - tempNode2 = tempNode -> value; + valueList *tempNode2 = tempNode -> value; while(tempNode2 != NULL) { strcat(ones, "1 "); tempNode2 = tempNode2 -> next; -- cgit v1.2.3