=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/cvs/Attic/compress.c,v retrieving revision 1.1 retrieving revision 1.2 diff -c -r1.1 -r1.2 *** src/usr.bin/cvs/Attic/compress.c 2006/01/03 17:04:53 1.1 --- src/usr.bin/cvs/Attic/compress.c 2006/04/05 01:38:55 1.2 *************** *** 1,4 **** ! /* $OpenBSD: compress.c,v 1.1 2006/01/03 17:04:53 xsa Exp $ */ /* * Copyright (c) 2005 Jean-Francois Brousseau * All rights reserved. --- 1,4 ---- ! /* $OpenBSD: compress.c,v 1.2 2006/04/05 01:38:55 ray Exp $ */ /* * Copyright (c) 2005 Jean-Francois Brousseau * All rights reserved. *************** *** 55,62 **** fatal("invalid compression level %d (must be between 0 and 9)", level); ! ctx = (CVSZCTX *)xmalloc(sizeof(*ctx)); ! memset(ctx, 0, sizeof(*ctx)); ctx->z_level = level; --- 55,61 ---- fatal("invalid compression level %d (must be between 0 and 9)", level); ! ctx = xcalloc(1, sizeof(*ctx)); ctx->z_level = level;