提交 a7d1402e 编写于 作者: N Noah Metzger

Fixed access to uninitialized variable

Coverity ID: 1386084 the set_font method has accessed resolution_ before it was initialized by the set_resolution method.
Signed-off-by: NNoah Metzger <noah.metzger@bib.uni-mannheim.de>
上级 984a9817
......@@ -120,6 +120,7 @@ StringRenderer::StringRenderer(const std::string& font_desc, int page_width,
font_index_(0),
last_offset_(0) {
set_resolution(kDefaultOutputResolution);
set_font(font_desc);
}
bool StringRenderer::set_font(const std::string& desc) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册