summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Rasmussen <sebras@gmail.com>2017-02-04 06:21:20 +0100
committerSebastian Rasmussen <sebras@gmail.com>2017-02-04 06:22:30 +0100
commit40ac85bfb676bb4373bda4b18f9fd90268c9f1e9 (patch)
tree2c92b89f77545b4dab59fb8e17f48451c5f952f7
parentc6531e339d7a919f2e58b65d08d859e5ac335688 (diff)
downloadmupdf-40ac85bfb676bb4373bda4b18f9fd90268c9f1e9.tar.xz
Bug 697514: Write SVG output to stdout if no output specified.
-rw-r--r--source/tools/mudraw.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/tools/mudraw.c b/source/tools/mudraw.c
index 95b3440b..720e7ffc 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
{