about summary refs log tree commit diff
path: root/src/stdio/vsnprintf.c
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2011-03-12 21:55:45 -0500
committerRich Felker <dalias@aerifal.cx>2011-03-12 21:55:45 -0500
commit5eb0d33ec0f08b123c5c10877d6258d05fa9453a (patch)
tree85ff7f5397424685d89af8176ff7ce6d6f46f6e2 /src/stdio/vsnprintf.c
parentd8d19f4d46284d5b6124710a5235b6fe090c013f (diff)
downloadmusl-5eb0d33ec0f08b123c5c10877d6258d05fa9453a.tar.gz
musl-5eb0d33ec0f08b123c5c10877d6258d05fa9453a.tar.xz
musl-5eb0d33ec0f08b123c5c10877d6258d05fa9453a.zip
implement flockfile api, rework stdio locking
Diffstat (limited to 'src/stdio/vsnprintf.c')
-rw-r--r--src/stdio/vsnprintf.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/stdio/vsnprintf.c b/src/stdio/vsnprintf.c
index bda6b49b..ff792e17 100644
--- a/src/stdio/vsnprintf.c
+++ b/src/stdio/vsnprintf.c
@@ -17,6 +17,7 @@ int vsnprintf(char *s, size_t n, const char *fmt, va_list ap)
 	f.write = sn_write;
 	f.buf_size = 1;
 	f.buf = buf;
+	f.owner = -1;
 	if (n > INT_MAX) {
 		errno = EOVERFLOW;
 		return -1;