From c16cda14f6234ce541d204be1267751f97a6f2a0 Mon Sep 17 00:00:00 2001 From: albert-github Date: Wed, 14 Apr 2021 14:31:22 +0200 Subject: Coverity warnings Correcting new coverity warnings. - utf8.cpp is dead code. - template.cpp, made consistent with other render functions --- src/template.cpp | 1 + src/utf8.cpp | 2 -- 2 files changed, 1 insertion(+), 2 deletions(-) mode change 100644 => 100755 src/template.cpp diff --git a/src/template.cpp b/src/template.cpp old mode 100644 new mode 100755 index 5ae5881..2e8dc4f --- a/src/template.cpp +++ b/src/template.cpp @@ -4023,6 +4023,7 @@ class TemplateNodeCycle : public TemplateNodeCreator void render(TextStream &ts, TemplateContext *c) { TemplateContextImpl *ci = dynamic_cast(c); + if (ci==0) return; // should not happen ci->setLocation(m_templateName,m_line); if (m_index