diff options
-rwxr-xr-x[-rw-r--r--] | src/template.cpp | 1 | ||||
-rw-r--r-- | src/utf8.cpp | 2 |
2 files changed, 1 insertions, 2 deletions
diff --git a/src/template.cpp b/src/template.cpp index 5ae5881..2e8dc4f 100644..100755 --- a/src/template.cpp +++ b/src/template.cpp @@ -4023,6 +4023,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()) { diff --git a/src/utf8.cpp b/src/utf8.cpp index 9ffc168..a00f615 100644 --- a/src/utf8.cpp +++ b/src/utf8.cpp @@ -117,8 +117,6 @@ static inline uint32_t convertUTF8CharToUnicode(const char *s,size_t bytesLeft,i return uc; } } - len=0; - return 0; } std::string getUTF8CharAt(const std::string &input,size_t pos) |