Просмотр исходного кода

ENH: null terminate at the end of the list

Bill Hoffman 22 лет назад
Родитель
Сommit
711febc82d
1 измененных файлов с 3 добавлено и 1 удалено
  1. 3 1
      Source/cmCreateTestSourceList.cxx

+ 3 - 1
Source/cmCreateTestSourceList.cxx

@@ -186,7 +186,9 @@ bool cmCreateTestSourceList::InitialPass(std::vector<std::string> const& args)
       "  },\n";
     numTests++;
     }
-
+  // end with an empty struct
+  fout << "  {0,0}\n";
+  
   fout << 
     "};\n"
     "\n"