diff options
author | 2005-04-14 03:02:35 +0000 | |
---|---|---|
committer | 2005-04-14 03:02:35 +0000 | |
commit | 196cc96378ae15dbbf6f51899823d1b9db61d39d (patch) | |
tree | a790ae096e2d3371c7190a474943365e57c1ea37 | |
parent | Do this correctly, and silence a sign comparison warning. (diff) | |
download | wireguard-openbsd-196cc96378ae15dbbf6f51899823d1b9db61d39d.tar.xz wireguard-openbsd-196cc96378ae15dbbf6f51899823d1b9db61d39d.zip |
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.c | 3 |
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) { |