Skip to content
Snippets Groups Projects
Commit 8acfec7a authored by Julien Malik's avatar Julien Malik
Browse files

BUG: uninitialized local variable

parent 93ed622c
No related branches found
No related tags found
No related merge requests found
......@@ -33,7 +33,10 @@ typename VariableLengthVectorConverter< std::vector<std::vector<TInternalInputTy
VariableLengthVectorConverter< std::vector<std::vector<TInternalInputType> >, TPrecisionType>
::Convert(InputType input)
{
unsigned int p, q, count, rsltIdx = 0;
unsigned int p, q
unsigned int count = 0;
unsigned int rsltIdx = 0;
OutputType result;
p = input.size();
......@@ -43,7 +46,6 @@ VariableLengthVectorConverter< std::vector<std::vector<TInternalInputType> >, TP
count+=input.at(l).size();
}
result.SetSize(count);
for (unsigned int i=0; i<p; i++)
......@@ -68,7 +70,9 @@ VariableLengthVectorConverter< std::vector<std::vector<std::complex<TInternalInp
TPrecisionType>
::Convert(InputType input)
{
unsigned int p, q, count, rsltIdx = 0;
unsigned int p, q;
unsigned int count = 0;
unsigned int rsltIdx = 0;
OutputType result;
p = input.size();
......
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