about summary refs log tree commit diff
path: root/iconv/iconv_prog.c
diff options
context:
space:
mode:
Diffstat (limited to 'iconv/iconv_prog.c')
-rw-r--r--iconv/iconv_prog.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/iconv/iconv_prog.c b/iconv/iconv_prog.c
index 3c7851f7a5..6b9930e50a 100644
--- a/iconv/iconv_prog.c
+++ b/iconv/iconv_prog.c
@@ -193,7 +193,7 @@ main (int argc, char *argv[])
     }
 
   /* Determine output file.  */
-  if (output_file != NULL)
+  if (output_file != NULL && strcmp (output_file, "-") != 0)
     {
       output = fopen (output_file, "w");
       if (output == NULL)