Commit 247b9531 authored by Dennis Nienhüser's avatar Dennis Nienhüser

Fix potential use of uninitialized variable reducedLine

Would only happen when introducing another line string sub type though.
parent 78bad5ba
......@@ -79,6 +79,9 @@ GeoDataLineString* NodeReducer::reduce(GeoDataLineString* lineString){
return reducedLine;
}
reducedLine = new GeoDataLinearRing;
} else {
Q_ASSERT(false && "Unexpected GeoDataLineString subtype");
return;
}
......
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