summaryrefslogtreecommitdiffstats
path: root/src/template.cpp
diff options
context:
space:
mode:
authorDimitri van Heesch <doxygen@gmail.com>2021-04-22 19:24:49 (GMT)
committerGitHub <noreply@github.com>2021-04-22 19:24:49 (GMT)
commita3d53eda2903134a3d3e3d279088cfe2bec92a4e (patch)
tree9e424052e6ec4414cbd22aedef1e064d5883459a /src/template.cpp
parent3995f8b527f4d6461886fd73dfae6b7262b0819f (diff)
parentc16cda14f6234ce541d204be1267751f97a6f2a0 (diff)
downloadDoxygen-a3d53eda2903134a3d3e3d279088cfe2bec92a4e.zip
Doxygen-a3d53eda2903134a3d3e3d279088cfe2bec92a4e.tar.gz
Doxygen-a3d53eda2903134a3d3e3d279088cfe2bec92a4e.tar.bz2
Merge pull request #8502 from albert-github/feature/bug_coverity_20210414
Coverity warnings
Diffstat (limited to 'src/template.cpp')
-rwxr-xr-x[-rw-r--r--]src/template.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/template.cpp b/src/template.cpp
index 9f3fe44..9ae2c11 100644..100755
--- a/src/template.cpp
+++ b/src/template.cpp
@@ -4024,6 +4024,7 @@ class TemplateNodeCycle : public TemplateNodeCreator<TemplateNodeCycle>
void render(TextStream &ts, TemplateContext *c)
{
TemplateContextImpl *ci = dynamic_cast<TemplateContextImpl*>(c);
+ if (ci==0) return; // should not happen
ci->setLocation(m_templateName,m_line);
if (m_index<m_args.size())
{