summaryrefslogtreecommitdiff
path: root/gfx/fig.c
diff options
context:
space:
mode:
authorWerner Almesberger <werner@almesberger.net>2016-09-03 13:24:18 -0300
committerWerner Almesberger <werner@almesberger.net>2016-09-03 19:18:29 -0300
commitc8b5418ada13b5e30a524b7f87d50865bef27f30 (patch)
tree24c902e744040ac13d0de97179b529146a0b0f3d /gfx/fig.c
parent45d0e26e83947644064934e8a620ce9b7720fa03 (diff)
downloadeeshow-c8b5418ada13b5e30a524b7f87d50865bef27f30.tar.gz
eeshow-c8b5418ada13b5e30a524b7f87d50865bef27f30.tar.bz2
eeshow-c8b5418ada13b5e30a524b7f87d50865bef27f30.zip
gfx/cro.c, gfx/fig.c: output file name - means standard output
Diffstat (limited to 'gfx/fig.c')
-rw-r--r--gfx/fig.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gfx/fig.c b/gfx/fig.c
index 36e6a7c..8ae7721 100644
--- a/gfx/fig.c
+++ b/gfx/fig.c
@@ -323,7 +323,7 @@ static bool fig_args(void *ctx, int argc, char *const *argv)
if (argc != optind)
usage(*argv);
- if (output) {
+ if (output && strcmp(output, "-")) {
fig->file = fopen(output, "w");
if (!fig->file)
diag_pfatal(output);