浏览代码

cmMakefile: Move variable definition above a condition.

Stephen Kelly 10 年之前
父节点
当前提交
bdd4c5f5ba
共有 1 个文件被更改,包括 2 次插入3 次删除
  1. 2 3
      Source/cmMakefile.cxx

+ 2 - 3
Source/cmMakefile.cxx

@@ -563,15 +563,14 @@ bool cmMakefile::ReadListFile(const char* filename_in,
       }
     }
 
+  const char *filenametoread = filename;
+
   // keep track of the current file being read
   if (filename)
     {
     this->cmCurrentListFile = filename;
     }
 
-  // Now read the input file
-  const char *filenametoread= filename;
-
   if(external_in)
     {
     filenametoread= external;