diff options
author | Xavier Santolaria <xsa@cvs.openbsd.org> | 2005-12-21 16:03:57 +0000 |
---|---|---|
committer | Xavier Santolaria <xsa@cvs.openbsd.org> | 2005-12-21 16:03:57 +0000 |
commit | 93c1d1cad71edb3d8383330e1d9aa176393d4162 (patch) | |
tree | 72b754b11e65f1e16df5b022dbd4ad8c48994487 /usr.bin/cvs/buf.c | |
parent | 5ff6aedca1fe48b7482982af3948378ebbae8316 (diff) |
initialize `rlen' in cvs_buf_set();
Diffstat (limited to 'usr.bin/cvs/buf.c')
-rw-r--r-- | usr.bin/cvs/buf.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/cvs/buf.c b/usr.bin/cvs/buf.c index 069c11f4b7b..832392901f9 100644 --- a/usr.bin/cvs/buf.c +++ b/usr.bin/cvs/buf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: buf.c,v 1.22 2005/12/20 17:55:10 xsa Exp $ */ +/* $OpenBSD: buf.c,v 1.23 2005/12/21 16:03:56 xsa Exp $ */ /* * Copyright (c) 2003 Jean-Francois Brousseau <jfb@openbsd.org> * All rights reserved. @@ -210,7 +210,7 @@ cvs_buf_copy(BUF *b, size_t off, void *dst, size_t len) ssize_t cvs_buf_set(BUF *b, const void *src, size_t len, size_t off) { - size_t rlen; + size_t rlen = 0; if (b->cb_size < (len + off)) { if ((b->cb_flags & BUF_AUTOEXT) && |