From 0da89d9fca0e1e8a54f4a32fb3c8a633f35334c1 Mon Sep 17 00:00:00 2001 From: Matt Strapp Date: Mon, 5 Oct 2020 19:29:48 -0500 Subject: Fix thing? --- P1/src/mapper.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'P1') 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); -- cgit v1.2.3