oox/source/drawingml/fillproperties.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit 2940491e2670610ca68288dd55af65238306d947 Author: Caolán McNamara <caol...@redhat.com> AuthorDate: Thu Apr 6 13:05:58 2023 +0100 Commit: Caolán McNamara <caol...@redhat.com> CommitDate: Thu Apr 6 16:46:35 2023 +0200 cid#1524677 attempt to silence Explicit null dereferenced ctor iterator to point to start of container Change-Id: I37f55b572d76958cf0b8ea5139ccd291ef546c65 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/150104 Tested-by: Caolán McNamara <caol...@redhat.com> Reviewed-by: Caolán McNamara <caol...@redhat.com> diff --git a/oox/source/drawingml/fillproperties.cxx b/oox/source/drawingml/fillproperties.cxx index fd3ba99b2c3f..34a0db6dc940 100644 --- a/oox/source/drawingml/fillproperties.cxx +++ b/oox/source/drawingml/fillproperties.cxx @@ -725,7 +725,7 @@ void FillProperties::pushToPropMap(ShapePropertyMap& rPropMap, const GraphicHelp // First look for the largest segment in the gradient. GradientFillProperties::GradientStopMap::iterator aIt(aGradientStops.begin()); double nWidestWidth = -1; - GradientFillProperties::GradientStopMap::iterator aWidestSegmentStart; + GradientFillProperties::GradientStopMap::iterator aWidestSegmentStart(aIt); ++aIt; while( aIt != aGradientStops.end() ) {