summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoris Vink <joris@cvs.openbsd.org>2005-04-14 03:02:36 +0000
committerJoris Vink <joris@cvs.openbsd.org>2005-04-14 03:02:36 +0000
commitbc68a22f2a36e3c04f12f024d87a7fd4df73a7b7 (patch)
tree62166ccda19e6f782d948632a7df611a8a1997ef
parent3ac6b9764e79db0304b20cb31b88a1e00ffb779f (diff)
set ret to 0 after using it to check snprintf() so that
cvs_resp_handle() doesn't freak out and causes everything to go crazy and fail.
-rw-r--r--usr.bin/cvs/resp.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.bin/cvs/resp.c b/usr.bin/cvs/resp.c
index f525a721b30..80b374d2996 100644
--- a/usr.bin/cvs/resp.c
+++ b/usr.bin/cvs/resp.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: resp.c,v 1.24 2005/04/13 15:08:36 jfb Exp $ */
+/* $OpenBSD: resp.c,v 1.25 2005/04/14 03:02:35 joris Exp $ */
/*
* Copyright (c) 2004 Jean-Francois Brousseau <jfb@openbsd.org>
* All rights reserved.
@@ -597,6 +597,7 @@ cvs_resp_updated(struct cvsroot *root, int type, char *line)
cvs_log(LP_ERR, "Entries path overflow in response");
return (-1);
}
+ ret = 0;
entfile = cvs_ent_open(line, O_WRONLY);
if (entfile == NULL) {