aboutsummaryrefslogtreecommitdiffstats
path: root/util/iobuf.c
diff options
context:
space:
mode:
Diffstat (limited to 'util/iobuf.c')
-rw-r--r--util/iobuf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/util/iobuf.c b/util/iobuf.c
index 981fb2efb..ad9821972 100644
--- a/util/iobuf.c
+++ b/util/iobuf.c
@@ -350,7 +350,7 @@ iobuf_create( const char *fname )
file_filter_ctx_t *fcx;
size_t len;
- if( !fname ) {
+ if( !fname || (*fname=='-' && !fname[1]) ) {
fp = stdout;
fname = "[stdout]";
}