OSDN Git Service

*
authorkonn <konn@1a406e8e-add9-4483-a2c8-d8cac5b7c224>
Wed, 12 Mar 2008 03:20:41 +0000 (03:20 +0000)
committerkonn <konn@1a406e8e-add9-4483-a2c8-d8cac5b7c224>
Wed, 12 Mar 2008 03:20:41 +0000 (03:20 +0000)
git-svn-id: svn+ssh://svn.sourceforge.jp/svnroot/modchxj/mod_chxj/branches/RELEASE_0_8_0@1870 1a406e8e-add9-4483-a2c8-d8cac5b7c224

src/qs_parse_string.c

index d9175a4..0e5fce0 100644 (file)
@@ -70,7 +70,7 @@ qs_parse_string(Doc* doc, const char* src, int srclen)
     node_stack = apr_palloc(doc->r->pool, sizeof(struct node_stack));
     memset(node_stack, 0, sizeof(struct node_stack));
     err_stack = apr_palloc(doc->r->pool, sizeof(struct node_stack));
-    memset(node_stack, 0, sizeof(struct node_stack));
+    memset(err_stack, 0, sizeof(struct node_stack));
   }
   else {
     node_stack = calloc(sizeof(struct node_stack), 1);
@@ -598,6 +598,7 @@ qs_pop_node(Doc *doc, NodeStack stack)
   stack->tail = (NodeStackElement)((unsigned int)stack->head->ref - (unsigned int)APR_OFFSETOF(struct node_stack_element, next));
   if (doc->r == NULL)
     free(tail);
+
   return result;
 }