summaryrefslogtreecommitdiffstats
path: root/contrib/cvs/src/rcscmds.c
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/cvs/src/rcscmds.c')
-rw-r--r--contrib/cvs/src/rcscmds.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/contrib/cvs/src/rcscmds.c b/contrib/cvs/src/rcscmds.c
index f889233..bcdffd5 100644
--- a/contrib/cvs/src/rcscmds.c
+++ b/contrib/cvs/src/rcscmds.c
@@ -7,6 +7,8 @@
*
* The functions in this file provide an interface for performing
* operations directly on RCS files.
+ *
+ * $FreeBSD$
*/
#include "cvs.h"
@@ -147,7 +149,8 @@ call_diff_write_output (text, len)
const char *text;
size_t len;
{
- cvs_output (text, len);
+ if (len > 0)
+ cvs_output (text, len);
}
/* Call back function for the diff library to flush the output file.
OpenPOWER on IntegriCloud