about summary refs log tree commit diff
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2011-08-01 00:03:50 -0400
committerRich Felker <dalias@aerifal.cx>2011-08-01 00:03:50 -0400
commite95b0a9d1077b3d20d1b6efebe5135eb99a8b7ef (patch)
tree640baa142c91161d0738758910ea109c6804ad5a
parentacfd06df17fd3940e4602af4b9132f61a6a3eb7f (diff)
downloadmusl-e95b0a9d1077b3d20d1b6efebe5135eb99a8b7ef.tar.gz
musl-e95b0a9d1077b3d20d1b6efebe5135eb99a8b7ef.tar.xz
musl-e95b0a9d1077b3d20d1b6efebe5135eb99a8b7ef.zip
fix crash in dns code with new stdio locking code
-rw-r--r--src/stdio/__fopen_rb_ca.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/stdio/__fopen_rb_ca.c b/src/stdio/__fopen_rb_ca.c
index 4ba50d61..89ccbc37 100644
--- a/src/stdio/__fopen_rb_ca.c
+++ b/src/stdio/__fopen_rb_ca.c
@@ -13,6 +13,7 @@ FILE *__fopen_rb_ca(const char *filename, FILE *f, unsigned char *buf, size_t le
 	f->read = __stdio_read;
 	f->seek = __stdio_seek;
 	f->close = __stdio_close;
+	f->lock = -1;
 
 	return f;
 }