aboutsummaryrefslogtreecommitdiff
path: root/lib/libgeom/geom_xml2tree.c
diff options
context:
space:
mode:
authorDag-Erling Smørgrav <des@FreeBSD.org>2008-08-09 11:14:05 +0000
committerDag-Erling Smørgrav <des@FreeBSD.org>2008-08-09 11:14:05 +0000
commit2616144e4345e4cdab56fd7c673fbb69074a9ce2 (patch)
treea49f25cd0b20b9dc2d2e2f419d89d33aad927f68 /lib/libgeom/geom_xml2tree.c
parent546d78908b9f0f53f066f5b1c63a7fd1759c27a9 (diff)
downloadsrc-2616144e4345e4cdab56fd7c673fbb69074a9ce2.tar.gz
src-2616144e4345e4cdab56fd7c673fbb69074a9ce2.zip
Add sbuf_new_auto as a shortcut for the very common case of creating a
completely dynamic sbuf. Obtained from: Varnish MFC after: 2 weeks
Notes
Notes: svn path=/head/; revision=181463
Diffstat (limited to 'lib/libgeom/geom_xml2tree.c')
-rw-r--r--lib/libgeom/geom_xml2tree.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libgeom/geom_xml2tree.c b/lib/libgeom/geom_xml2tree.c
index 08fb394eefc4..1c7e22b56895 100644
--- a/lib/libgeom/geom_xml2tree.c
+++ b/lib/libgeom/geom_xml2tree.c
@@ -68,7 +68,7 @@ StartElement(void *userData, const char *name, const char **attr)
mt = userData;
mt->level++;
- mt->sbuf[mt->level] = sbuf_new(NULL, NULL, 0, SBUF_AUTOEXTEND);
+ mt->sbuf[mt->level] = sbuf_new_auto();
id = NULL;
ref = NULL;
for (i = 0; attr[i] != NULL; i += 2) {