=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/cvs/cvs.c,v retrieving revision 1.95 retrieving revision 1.96 diff -c -r1.95 -r1.96 *** src/usr.bin/cvs/cvs.c 2006/03/15 18:24:50 1.95 --- src/usr.bin/cvs/cvs.c 2006/04/05 01:38:55 1.96 *************** *** 1,4 **** ! /* $OpenBSD: cvs.c,v 1.95 2006/03/15 18:24:50 deraadt Exp $ */ /* * Copyright (c) 2004 Jean-Francois Brousseau * All rights reserved. --- 1,4 ---- ! /* $OpenBSD: cvs.c,v 1.96 2006/04/05 01:38:55 ray Exp $ */ /* * Copyright (c) 2004 Jean-Francois Brousseau * All rights reserved. *************** *** 447,454 **** valcp = xstrdup(val); if (vp == NULL) { ! vp = (struct cvs_var *)xmalloc(sizeof(*vp)); ! memset(vp, 0, sizeof(*vp)); vp->cv_name = xstrdup(var); TAILQ_INSERT_TAIL(&cvs_variables, vp, cv_link); --- 447,453 ---- valcp = xstrdup(val); if (vp == NULL) { ! vp = xcalloc(1, sizeof(*vp)); vp->cv_name = xstrdup(var); TAILQ_INSERT_TAIL(&cvs_variables, vp, cv_link);