From 93c1d1cad71edb3d8383330e1d9aa176393d4162 Mon Sep 17 00:00:00 2001 From: Xavier Santolaria Date: Wed, 21 Dec 2005 16:03:57 +0000 Subject: initialize `rlen' in cvs_buf_set(); --- usr.bin/cvs/buf.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'usr.bin/cvs/buf.c') 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 * 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) && -- cgit v1.2.3