Fix scan coverity issues:
CID 184350: Null pointer dereferences
This commit is contained in:
@@ -1725,16 +1725,12 @@ int SketchObject::fillet(int GeoId1, int GeoId2,
|
||||
|
||||
// add arc to sketch geometry
|
||||
int filletId;
|
||||
if (arc) {
|
||||
Part::Geometry *newgeo = arc;
|
||||
filletId = addGeometry(newgeo);
|
||||
if (filletId < 0) {
|
||||
delete arc;
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
else
|
||||
Part::Geometry *newgeo = arc;
|
||||
filletId = addGeometry(newgeo);
|
||||
if (filletId < 0) {
|
||||
delete arc;
|
||||
return -1;
|
||||
}
|
||||
|
||||
if (trim) {
|
||||
auto selectend = [](double intparam, double refparam, double startparam) {
|
||||
|
||||
Reference in New Issue
Block a user