PVS: V1024 The 'file' stream is checked for EOF before reading from it, but is not checked after reading. Potential use of invalid data

This commit is contained in:
wmayer
2019-03-13 13:34:45 +01:00
parent d232164ba0
commit 93f0d1bec9
6 changed files with 8 additions and 17 deletions

View File

@@ -87,8 +87,7 @@ App::DocumentObjectExecReturn *LuxProject::execute(void)
ofstream ofile(tempName.c_str());
// copy the input of the resource file
while (!file.eof()) {
getline (file,line);
while (getline (file,line)) {
// check if the marker in the template is found
if(line.find("#RaytracingContent") == string::npos) {
if(line.find("#RaytracingCamera") == string::npos) {