aboutsummaryrefslogtreecommitdiffstats
path: root/P1
diff options
context:
space:
mode:
authorMatt Strapp <strap012@umn.edu>2020-10-05 19:29:48 -0500
committerMatt Strapp <strap012@umn.edu>2020-10-05 19:29:48 -0500
commit0da89d9fca0e1e8a54f4a32fb3c8a633f35334c1 (patch)
treee62460117921e2063a1d43f1f0aa406a3821d81d /P1
parentcomment out the broken free (diff)
downloadcsci4061-0da89d9fca0e1e8a54f4a32fb3c8a633f35334c1.tar
csci4061-0da89d9fca0e1e8a54f4a32fb3c8a633f35334c1.tar.gz
csci4061-0da89d9fca0e1e8a54f4a32fb3c8a633f35334c1.tar.bz2
csci4061-0da89d9fca0e1e8a54f4a32fb3c8a633f35334c1.tar.lz
csci4061-0da89d9fca0e1e8a54f4a32fb3c8a633f35334c1.tar.xz
csci4061-0da89d9fca0e1e8a54f4a32fb3c8a633f35334c1.tar.zst
csci4061-0da89d9fca0e1e8a54f4a32fb3c8a633f35334c1.zip
Fix thing?
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);