From eac6e44523b9142ec47ebe4cadfadc58fe99585c Mon Sep 17 00:00:00 2001 From: Neil Date: Fri, 11 Jun 2021 13:31:22 +1000 Subject: Ensure variable initialised. --- src/LineMarker.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/LineMarker.cxx b/src/LineMarker.cxx index 10693c749..5bfb89307 100644 --- a/src/LineMarker.cxx +++ b/src/LineMarker.cxx @@ -542,7 +542,7 @@ void LineMarker::Draw(Surface *surface, const PRectangle &rcWhole, const Font *f default: if (markType >= MarkerSymbol::Character) { - char character[UTF8MaxBytes + 1]; + char character[UTF8MaxBytes + 1] {}; const int uch = static_cast(markType) - static_cast(MarkerSymbol::Character); UTF8FromUTF32Character(uch, character); const XYPOSITION width = surface->WidthTextUTF8(fontForCharacter, character); -- cgit v1.2.3