Bug fixes

This commit is contained in:
2019-11-09 12:00:07 -05:00
parent b0a868bb73
commit ea4fb7fa0d
5 changed files with 24 additions and 7 deletions

View File

@@ -114,6 +114,10 @@ int read_stext_block(fz_stext_block *block, text_buffer_t *tex) {
void parse_pdf(void *buf, size_t buf_len, document_t *doc) {
if (buf == NULL) {
return;
}
static int mu_is_initialized = 0;
if (!mu_is_initialized) {
pthread_mutex_init(&ScanCtx.mupdf_mu, NULL);