Browse Source

Fixed variable shadowing

Piotr Czajkowski 4 years ago
parent
commit
6106ac9ca5
1 changed files with 3 additions and 3 deletions
  1. 3 3
      zip.c

+ 3 - 3
zip.c

@@ -71,10 +71,10 @@ int process(const char *infile, char *outfile) {
 	strcat(binnFile, ".bin");
 
 	if (!outfile || strcmp(infile, outfile) == 0){
-		const char *outfile = "tmpFile.docx";
-		processDOCX(infile, outfile);
+		const char *tmpFile = "tmpFile.docx";
+		processDOCX(infile, tmpFile);
 		remove(infile);
-		rename(outfile, infile);
+		rename(tmpFile, infile);
 	} else {
 		processDOCX(infile, outfile);
 	}