commit 340ab998fa94c4377013279a0cb987ae25c920de parent bc65d0c950a568e716fa1dd419aabc2bafec79c4 Author: Christophe Coustet <christophe.coustet@meso-star.com> Date: Thu, 7 Sep 2023 10:15:36 +0200 Fix a warning on potential release of uninitialized data Diffstat:
| M | src/scpr_polygon.c | | | 4 | +--- |
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/src/scpr_polygon.c b/src/scpr_polygon.c @@ -224,9 +224,7 @@ scpr_polygon_setup_indexed_vertices } /* Merge vertices, ... */ - TRY(paths = Clipper2Lib::SimplifyPaths(paths, dev->inv_scale)); - polygon->paths = std::move(paths); - paths.Clipper2Lib::Paths64::~Paths64(); + TRY(polygon->paths = Clipper2Lib::SimplifyPaths(paths, dev->inv_scale)); changedc = (ncomponents != polygon->paths.size()); for(c = 0; !changedv && c < polygon->paths.size(); c++) { size_t nv;