summaryrefslogtreecommitdiffstats
path: root/usr.bin/cvs/logmsg.c
diff options
context:
space:
mode:
authorjoris <joris@openbsd.org>2005-07-23 00:03:00 +0000
committerjoris <joris@openbsd.org>2005-07-23 00:03:00 +0000
commita4c69cc6c8a2098a78b7f72edae5372b4fd33cd5 (patch)
tree3420b69ff557a436d27380c85c1ffb5fe4fee199 /usr.bin/cvs/logmsg.c
parentremove ICH3 workaround. (diff)
downloadwireguard-openbsd-a4c69cc6c8a2098a78b7f72edae5372b4fd33cd5.tar.xz
wireguard-openbsd-a4c69cc6c8a2098a78b7f72edae5372b4fd33cd5.zip
correctly seperate added, modified and removed files for use in the
construction of the log message in the editor. ok jfb@
Diffstat (limited to 'usr.bin/cvs/logmsg.c')
-rw-r--r--usr.bin/cvs/logmsg.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/usr.bin/cvs/logmsg.c b/usr.bin/cvs/logmsg.c
index e1ac250fbdf..55df52bb46b 100644
--- a/usr.bin/cvs/logmsg.c
+++ b/usr.bin/cvs/logmsg.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: logmsg.c,v 1.15 2005/06/02 16:05:38 xsa Exp $ */
+/* $OpenBSD: logmsg.c,v 1.16 2005/07/23 00:03:00 joris Exp $ */
/*
* Copyright (c) 2004 Jean-Francois Brousseau <jfb@openbsd.org>
* All rights reserved.
@@ -216,6 +216,9 @@ cvs_logmsg_get(const char *dir, struct cvs_flist *added,
if (files[i] == NULL)
continue;
+ if (SIMPLEQ_EMPTY(files[i]))
+ continue;
+
fprintf(fp, "%s %s Files:", CVS_LOGMSG_PREFIX,
cvs_logmsg_ops[i]);
nl = 1;