diff options
Diffstat (limited to 'apps/pdfextract.c')
-rw-r--r-- | apps/pdfextract.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/pdfextract.c b/apps/pdfextract.c index cb03d745..c32a25c5 100644 --- a/apps/pdfextract.c +++ b/apps/pdfextract.c @@ -127,7 +127,7 @@ static void savefont(fz_obj *dict, int num) printf("extracting font %s\n", name); f = fopen(name, "wb"); - if (f == NULL) + if (!f) fz_throw(ctx, "Error creating font file"); n = fwrite(buf->data, 1, buf->len, f); |