summaryrefslogtreecommitdiffstats
path: root/sys/geom/geom_slice.c
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2003-06-07 10:16:53 +0000
committerphk <phk@FreeBSD.org>2003-06-07 10:16:53 +0000
commit69b4e9ce0114dea78c811d6c01cd8ebd9b810fc5 (patch)
treee42f41384b3d3867c6ecb12f9c7c63491a6db503 /sys/geom/geom_slice.c
parent10afeb827154cef535bf9fb2c0fc4a2d5af0849d (diff)
downloadFreeBSD-src-69b4e9ce0114dea78c811d6c01cd8ebd9b810fc5.zip
FreeBSD-src-69b4e9ce0114dea78c811d6c01cd8ebd9b810fc5.tar.gz
Add missing va_end() calls.
Noticed by: tmm
Diffstat (limited to 'sys/geom/geom_slice.c')
-rw-r--r--sys/geom/geom_slice.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/geom/geom_slice.c b/sys/geom/geom_slice.c
index 3b9db4e..9342f11 100644
--- a/sys/geom/geom_slice.c
+++ b/sys/geom/geom_slice.c
@@ -344,9 +344,10 @@ g_slice_config(struct g_geom *gp, u_int idx, int how, off_t offset, off_t length
pp->mediasize = gsl->length;
return (0);
}
- va_start(ap, fmt);
sb = sbuf_new(NULL, NULL, 0, SBUF_AUTOEXTEND);
+ va_start(ap, fmt);
sbuf_vprintf(sb, fmt, ap);
+ va_end(ap);
sbuf_finish(sb);
pp = g_new_providerf(gp, sbuf_data(sb));
pp2 = LIST_FIRST(&gp->consumer)->provider;
OpenPOWER on IntegriCloud