]> git.stg.codes - stg.git/blobdiff - projects/stargazer/plugins/configuration/sgconfig/parser.cpp
Ticket. InToTraffType() function declaration and definition added.
[stg.git] / projects / stargazer / plugins / configuration / sgconfig / parser.cpp
index b984adf63e62758295d728126522ce7b99bbdfa1..e52eb3faf72f828e79c7eac31df1fa279511fe96 100644 (file)
@@ -35,11 +35,12 @@ int BASE_PARSER::Start(void *, const char * el, const char **)
 //-----------------------------------------------------------------------------
 int BASE_PARSER::End(void *, const char * el)
 {
 //-----------------------------------------------------------------------------
 int BASE_PARSER::End(void *, const char * el)
 {
-    if (m_depth == 1)
+    if (m_depth < 2)
     {
         if (strcasecmp(el, m_tag.c_str()) != 0)
             return -1;
         CreateAnswer();
     {
         if (strcasecmp(el, m_tag.c_str()) != 0)
             return -1;
         CreateAnswer();
+        m_done = true;
     }
 
     --m_depth;
     }
 
     --m_depth;