From e95b0a9d1077b3d20d1b6efebe5135eb99a8b7ef Mon Sep 17 00:00:00 2001 From: Rich Felker Date: Mon, 1 Aug 2011 00:03:50 -0400 Subject: fix crash in dns code with new stdio locking code --- src/stdio/__fopen_rb_ca.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/stdio') 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; } -- cgit v1.2.3-70-g09d2