From 0ed30d0200e4372e6929c80d6406e87687257679 Mon Sep 17 00:00:00 2001 From: Jonathan G Rennison Date: Sat, 25 Jun 2022 11:40:37 +0100 Subject: [PATCH] Avoid maybe unintialised warning in struct UniscribeRun See: #394 --- src/os/windows/string_uniscribe.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/os/windows/string_uniscribe.cpp b/src/os/windows/string_uniscribe.cpp index 7c70557b61..883ee2949b 100644 --- a/src/os/windows/string_uniscribe.cpp +++ b/src/os/windows/string_uniscribe.cpp @@ -50,7 +50,7 @@ struct UniscribeRun { std::vector offsets; int total_advance; - UniscribeRun(int pos, int len, Font *font, SCRIPT_ANALYSIS &sa) : pos(pos), len(len), font(font), sa(sa) {} + UniscribeRun(int pos, int len, Font *font, SCRIPT_ANALYSIS &sa) : pos(pos), len(len), font(font), sa(sa), total_advance(0) {} }; /** Break a string into language formatting ranges. */