From 9f7840c7d68e064cb5460a012936ac21cb8f68f2 Mon Sep 17 00:00:00 2001 From: Sergi Jimenez Date: Sun, 5 May 2019 22:09:03 +0200 Subject: [PATCH] fix(build): Uninitialized local variable (#1759) Fixes #1758 --- include/cairo/context.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/cairo/context.hpp b/include/cairo/context.hpp index bd933639..8ed4f500 100644 --- a/include/cairo/context.hpp +++ b/include/cairo/context.hpp @@ -158,7 +158,7 @@ namespace cairo { while (!chars.empty()) { auto remaining = chars.size(); for (auto&& f : fns) { - unsigned int matches; + unsigned int matches = 0; // Match as many glyphs as possible if the default/preferred font // is being tested. Otherwise test one glyph at a time against