21 lines
737 B
Diff
21 lines
737 B
Diff
From: Sebastian Rasmussen <sebras@gmail.com>
|
|
Date: Sat, 4 Feb 2017 05:21:20 +0000 (+0100)
|
|
Subject: Bug 697514: Write SVG output to stdout if no output specified.
|
|
X-Git-Url: http://git.ghostscript.com/?p=mupdf.git;a=commitdiff_plain;h=40ac85bfb676bb4373bda4b18f9fd90268c9f1e9
|
|
|
|
Bug 697514: Write SVG output to stdout if no output specified.
|
|
---
|
|
|
|
diff --git a/source/tools/mudraw.c b/source/tools/mudraw.c
|
|
index 95b3440..720e7ff 100644
|
|
--- a/source/tools/mudraw.c
|
|
+++ b/source/tools/mudraw.c
|
|
@@ -578,7 +578,7 @@ static void dodrawpage(fz_context *ctx, fz_page *page, fz_display_list *list, in
|
|
char buf[512];
|
|
fz_output *out;
|
|
|
|
- if (!strcmp(output, "-"))
|
|
+ if (!output || !strcmp(output, "-"))
|
|
out = fz_stdout(ctx);
|
|
else
|
|
{
|