aboutsummaryrefslogtreecommitdiffstats
path: root/P1
diff options
context:
space:
mode:
Diffstat (limited to 'P1')
-rw-r--r--P1/src/mapper.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/P1/src/mapper.c b/P1/src/mapper.c
index 9a6fb72..352cd29 100644
--- a/P1/src/mapper.c
+++ b/P1/src/mapper.c
@@ -115,7 +115,7 @@ void writeIntermediateDS() {
tempNode2 = tempNode2 -> next;
}
// Shove word and ones in a file named word.txt
- char filename[150];
+ char filename[150] = "";
sprintf(filename, "output/MapOut/Map_%d/%s.txt", mapperID, tempNode -> key);
FILE* fptr = fopen(filename, "w");
fprintf(fptr, "%s %s", tempNode -> key, ones);