diff output.c @ 22:cef2dc916269

honor mode.do_output
author David A. Holland
date Mon, 20 Dec 2010 04:17:32 -0500
parents e3fab8f1b52c
children daa801fe719e
line wrap: on
line diff
--- a/output.c	Mon Dec 20 04:15:02 2010 -0500
+++ b/output.c	Mon Dec 20 04:17:32 2010 -0500
@@ -29,6 +29,10 @@
 	ssize_t result;
 	static unsigned write_errors = 0;
 
+	if (!mode.do_output) {
+		return;
+	}
+
 	if (outputfd < 0) {
 		output_open();
 	}