summaryrefslogtreecommitdiff
path: root/gfx/fig.c
diff options
context:
space:
mode:
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);