summaryrefslogtreecommitdiffstats
path: root/usr.bin/cvs/commit.c
diff options
context:
space:
mode:
authorjfb <jfb@openbsd.org>2004-12-13 23:08:45 +0000
committerjfb <jfb@openbsd.org>2004-12-13 23:08:45 +0000
commit1898282e6781f9fe426e46f44a29668cf705b8de (patch)
tree944bbe02afb91452693051d9215614c2a131ebf6 /usr.bin/cvs/commit.c
parentyet another mistake in the protocol docs...even if we send the (diff)
downloadwireguard-openbsd-1898282e6781f9fe426e46f44a29668cf705b8de.tar.xz
wireguard-openbsd-1898282e6781f9fe426e46f44a29668cf705b8de.zip
return early if no files are ready to be commited
Diffstat (limited to 'usr.bin/cvs/commit.c')
-rw-r--r--usr.bin/cvs/commit.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.bin/cvs/commit.c b/usr.bin/cvs/commit.c
index 1528ddde12f..5c29806de5c 100644
--- a/usr.bin/cvs/commit.c
+++ b/usr.bin/cvs/commit.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: commit.c,v 1.10 2004/12/08 17:22:48 jfb Exp $ */
+/* $OpenBSD: commit.c,v 1.11 2004/12/13 23:08:45 jfb Exp $ */
/*
* Copyright (c) 2004 Jean-Francois Brousseau <jfb@openbsd.org>
* All rights reserved.
@@ -109,6 +109,8 @@ cvs_commit(int argc, char **argv)
return (EX_DATAERR);
cvs_file_examine(cvs_files, cvs_commit_prepare, &cl);
+ if (TAILQ_EMPTY(&cl))
+ return (0);
if (msg == NULL) {
msg = cvs_logmsg_get(CVS_FILE_NAME(cvs_files), NULL, &cl, NULL);