diff options
Diffstat (limited to 'usr.bin/cvs/compress.c')
-rw-r--r-- | usr.bin/cvs/compress.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/usr.bin/cvs/compress.c b/usr.bin/cvs/compress.c index aafa862c32b..a8f9ad35530 100644 --- a/usr.bin/cvs/compress.c +++ b/usr.bin/cvs/compress.c @@ -1,4 +1,4 @@ -/* $OpenBSD: compress.c,v 1.1 2006/01/03 17:04:53 xsa Exp $ */ +/* $OpenBSD: compress.c,v 1.2 2006/04/05 01:38:55 ray Exp $ */ /* * Copyright (c) 2005 Jean-Francois Brousseau <jfb@openbsd.org> * All rights reserved. @@ -55,8 +55,7 @@ cvs_zlib_newctx(int level) fatal("invalid compression level %d (must be between 0 and 9)", level); - ctx = (CVSZCTX *)xmalloc(sizeof(*ctx)); - memset(ctx, 0, sizeof(*ctx)); + ctx = xcalloc(1, sizeof(*ctx)); ctx->z_level = level; |