aboutsummaryrefslogtreecommitdiffstats
path: root/P1
diff options
context:
space:
mode:
authorAndrea Smith <smit9523@umn.edu>2020-10-05 20:13:47 -0500
committerAndrea Smith <smit9523@umn.edu>2020-10-05 20:13:47 -0500
commit2d57573327e7b01306efcd930a565901db805eb8 (patch)
tree2ec5acf7abe0db665764cd140c29b5bb8959ad35 /P1
parentAdd .good (diff)
downloadcsci4061-2d57573327e7b01306efcd930a565901db805eb8.tar
csci4061-2d57573327e7b01306efcd930a565901db805eb8.tar.gz
csci4061-2d57573327e7b01306efcd930a565901db805eb8.tar.bz2
csci4061-2d57573327e7b01306efcd930a565901db805eb8.tar.lz
csci4061-2d57573327e7b01306efcd930a565901db805eb8.tar.xz
csci4061-2d57573327e7b01306efcd930a565901db805eb8.tar.zst
csci4061-2d57573327e7b01306efcd930a565901db805eb8.zip
Moved tempNode2 assignment
Diffstat (limited to 'P1')
-rw-r--r--P1/src/mapper.c4
1 files 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;