From 060d45656dfbb3d66e714923eca4b199c4177648 Mon Sep 17 00:00:00 2001 From: Matt Strapp Date: Sun, 4 Oct 2020 14:28:28 -0500 Subject: It's fucked mate, big time --- P1/src/mapper.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/P1/src/mapper.c b/P1/src/mapper.c index 4a1bf1b..dfb6d22 100644 --- a/P1/src/mapper.c +++ b/P1/src/mapper.c @@ -100,15 +100,16 @@ void map(char *chunkData){ // poops the data out into separate .txt files named after the word void writeIntermediateDS() { intermediateDS *tempNode = &DS; - valueList *tempNode2; + valueList *tempNode2 = tempNode -> value; while(tempNode != NULL) { // Get string of 1's associated with the word char ones[100]; tempNode2 = tempNode2 -> value; while(tempNode2 != NULL) { + printf("This loop is being run\n"); strcat(ones, "1 "); - tempNode2 = tempNode -> next; + tempNode2 = tempNode2 -> next; } // Shove word and ones in a file named word.txt -- cgit v1.2.3