From owner-cvs-lib Fri Oct 18 13:26:05 1996 Return-Path: owner-cvs-lib Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id NAA21735 for cvs-lib-outgoing; Fri, 18 Oct 1996 13:26:05 -0700 (PDT) Received: from rocky.mt.sri.com (rocky.mt.sri.com [206.127.76.100]) by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id NAA21709; Fri, 18 Oct 1996 13:25:36 -0700 (PDT) Received: (from nate@localhost) by rocky.mt.sri.com (8.7.5/8.7.3) id OAA04292; Fri, 18 Oct 1996 14:25:33 -0600 (MDT) Date: Fri, 18 Oct 1996 14:25:33 -0600 (MDT) Message-Id: <199610182025.OAA04292@rocky.mt.sri.com> From: Nate Williams To: Guido van Rooij Cc: CVS-committers@freefall.freebsd.org, cvs-all@freefall.freebsd.org, cvs-lib@freefall.freebsd.org Subject: Re: cvs commit: src/lib/libc/db/hash hash_buf.c In-Reply-To: <199610181956.MAA19725@freefall.freebsd.org> References: <199610181956.MAA19725@freefall.freebsd.org> Sender: owner-cvs-lib@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk Guido van Rooij writes: > guido 96/10/18 12:56:53 > > Modified: lib/libc/db/hash hash_buf.c > Log: > Backout bzero patch. > > Somehow, I also managed to get quite some other changes in this file at > the same time. All I did was checkout the file and made a single change. > If someone has an explanation how these PURIFFY defines got in... Are you confused with CVS here? The version you modified against was 1.1.12: revision 1.1.1.2 date: 1996/02/27 01:58:50; author: pst; state: Exp; lines: +18 -10 Import updated Berkeley DB into CSRG branch And, the diffs you made are: (cut-paste, so white space is screwed up) nec:/usr/src/lib/libc/db/hash % cvs diff -u -r1.1.1.2 -r1.2 hash_buf.c Index: hash_buf.c =================================================================== RCS file: /home/CVS/src/lib/libc/db/hash/hash_buf.c,v retrieving revision 1.1.1.2 retrieving revision 1.2 diff -u -r1.1.1.2 -r1.2 --- hash_buf.c 1996/02/27 01:58:50 1.1.1.2 +++ hash_buf.c 1996/10/17 18:26:55 1.2 @@ -331,8 +331,10 @@ } /* Check if we are freeing stuff */ if (do_free) { - if (bp->page) + if (bp->page) { + (void)memset(bp->page, 0, hashp->BSIZE); free(bp->page); + } BUF_REMOVE(bp); free(bp); bp = LRU; > > Revision Changes Path > 1.3 +11 -21 src/lib/libc/db/hash/hash_buf.c