=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/cvs/entries.c,v retrieving revision 1.54 retrieving revision 1.55 diff -c -r1.54 -r1.55 *** src/usr.bin/cvs/entries.c 2006/01/02 08:11:56 1.54 --- src/usr.bin/cvs/entries.c 2006/04/05 01:38:55 1.55 *************** *** 1,4 **** ! /* $OpenBSD: entries.c,v 1.54 2006/01/02 08:11:56 xsa Exp $ */ /* * Copyright (c) 2004 Jean-Francois Brousseau * All rights reserved. --- 1,4 ---- ! /* $OpenBSD: entries.c,v 1.55 2006/04/05 01:38:55 ray Exp $ */ /* * Copyright (c) 2004 Jean-Francois Brousseau * All rights reserved. *************** *** 105,112 **** return (NULL); } ! ep = (CVSENTRIES *)xmalloc(sizeof(CVSENTRIES)); ! memset(ep, 0, sizeof(*ep)); ep->cef_path = xstrdup(entpath); ep->cef_bpath = xstrdup(bpath); --- 105,111 ---- return (NULL); } ! ep = xcalloc(1, sizeof(*ep)); ep->cef_path = xstrdup(entpath); ep->cef_bpath = xstrdup(bpath); *************** *** 380,387 **** return (NULL); } ! ent = (struct cvs_ent *)xmalloc(sizeof(*ent)); ! memset(ent, 0, sizeof(*ent)); ent->ce_buf = buf; if (*fields[0] == '\0') --- 379,385 ---- return (NULL); } ! ent = xcalloc(1, sizeof(*ent)); ent->ce_buf = buf; if (*fields[0] == '\0')