From bc68a22f2a36e3c04f12f024d87a7fd4df73a7b7 Mon Sep 17 00:00:00 2001 From: Joris Vink Date: Thu, 14 Apr 2005 03:02:36 +0000 Subject: 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. --- usr.bin/cvs/resp.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 * 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) { -- cgit v1.2.3