Skip to content
Snippets Groups Projects
Commit 51fde6e0 authored by Julien Michel's avatar Julien Michel
Browse files

COV: Fixing coverity issues 1266527 and 1266523 (Wrapper object use after free)

parent 2b556605
No related branches found
No related tags found
No related merge requests found
......@@ -89,7 +89,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);
......@@ -120,9 +120,9 @@ private:
{
clock_t tic = clock();
const char * shapefile = GetParameterString("inshp").c_str();
const char * XMLfile = GetParameterString("instats").c_str();
const char * modelfile = GetParameterString("outsvm").c_str();
std::string shapefile = GetParameterString("inshp");
std::string XMLfile = GetParameterString("instats");
std::string modelfile = GetParameterString("outsvm");
typedef double ValueType;
typedef itk::VariableLengthVector<ValueType> MeasurementType;
......
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