You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by rb...@locus.apache.org on 2000/04/13 01:17:51 UTC
cvs commit: apache-2.0/src/main util_cfgtree.c
rbb 00/04/12 16:17:51
Modified: src/main util_cfgtree.c
Log:
Fix a small bug in ap_add_node. We need to set the child's parent pointer
correctly.
Revision Changes Path
1.2 +2 -1 apache-2.0/src/main/util_cfgtree.c
Index: util_cfgtree.c
===================================================================
RCS file: /home/cvs/apache-2.0/src/main/util_cfgtree.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- util_cfgtree.c 2000/04/12 21:57:48 1.1
+++ util_cfgtree.c 2000/04/12 23:17:51 1.2
@@ -73,6 +73,7 @@
}
else {
(*parent)->first_child = toadd;
+ toadd->parent = *parent;
}
return toadd;
}
@@ -83,7 +84,7 @@
*parent = toadd;
return NULL;
}
- return conf_tree;
+ return toadd;
}