Skip to content
Snippets Groups Projects
Commit 9f325723 authored by Giovanni Bussi's avatar Giovanni Bussi
Browse files

Fixed uninitialized variable

parent a65bd739
No related branches found
No related tags found
No related merge requests found
......@@ -28,6 +28,7 @@
#include "Tools.h"
#include <cstdarg>
#include <cstring>
#include <cmath>
#include <iostream>
#include <string>
......@@ -162,7 +163,8 @@ IFile& IFile::scanField(const std::string&name,int &x){
}
IFile& IFile::scanField(Value* val){
double ff; scanField( val->getName(), ff );
double ff=NAN; // this is to be sure a NAN value is replaced upon failure
scanField( val->getName(), ff );
val->set( ff );
if( FieldExist("min_" + val->getName() ) ){
std::string min, max;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment