ソースを参照

Fixed variable shadowing

Piotr Czajkowski 5 年 前
コミット
6106ac9ca5
1 ファイル変更3 行追加3 行削除
  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);
 	}