summaryrefslogtreecommitdiff
blob: 9a459b28011ec83e68b8bfcc79218da681317154 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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
 		{