forked from pool/mupdf
a462c990d8
output specified bsc#1023760 OBS-URL: https://build.opensuse.org/package/show/Publishing/mupdf?expand=0&rev=50
14 lines
418 B
Diff
14 lines
418 B
Diff
Index: mupdf-1.10a-source/source/tools/mudraw.c
|
|
===================================================================
|
|
--- mupdf-1.10a-source.orig/source/tools/mudraw.c
|
|
+++ mupdf-1.10a-source/source/tools/mudraw.c
|
|
@@ -720,7 +720,7 @@ static void dodrawpage(fz_context *ctx,
|
|
char buf[512];
|
|
fz_output *out;
|
|
|
|
- if (!strcmp(output, "-"))
|
|
+ if (!output || !strcmp(output, "-"))
|
|
out = fz_stdout(ctx);
|
|
else
|
|
{
|