Commit 45b79769 authored by Julien Michel's avatar Julien Michel

COV: Fixing coverity issues 1266531 and 1266528 (Wrapper object use after free)

parent 5fc4abc1
......@@ -90,7 +90,7 @@ private:
{
if ( HasValue("inshp") )
{
const char * shapefile = GetParameterString("inshp").c_str();
std::string shapefile = GetParameterString("inshp");
otb::ogr::DataSource::Pointer ogrDS;
otb::ogr::Layer layer(NULL, false);
......@@ -121,9 +121,9 @@ private:
{
clock_t tic = clock();
const char * shapefile = GetParameterString("inshp").c_str();
const char * XMLfile = GetParameterString("instats").c_str();
const char * modelfile = GetParameterString("insvm").c_str();
std::string shapefile = GetParameterString("inshp").c_str();
std::string XMLfile = GetParameterString("instats").c_str();
std::string modelfile = GetParameterString("insvm").c_str();
typedef double ValueType;
typedef itk::VariableLengthVector<ValueType> MeasurementType;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment