소스 검색

fix crash in dns code with new stdio locking code

Rich Felker 13 년 전
부모
커밋
e95b0a9d10
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      src/stdio/__fopen_rb_ca.c

+ 1 - 0
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;
 }