From: Rich Felker Date: Mon, 1 Aug 2011 04:03:50 +0000 (-0400) Subject: fix crash in dns code with new stdio locking code X-Git-Url: http://nsz.repo.hu/git/?a=commitdiff_plain;h=e95b0a9d1077b3d20d1b6efebe5135eb99a8b7ef;p=musl fix crash in dns code with new stdio locking code --- 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; }