[BACK]Return to file.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / cvs

Diff for /src/usr.bin/cvs/file.c between version 1.135 and 1.136

version 1.135, 2006/04/02 02:02:27 version 1.136, 2006/04/05 01:38:55
Line 162 
Line 162 
         char *cp;          char *cp;
         struct cvs_ignpat *ip;          struct cvs_ignpat *ip;
   
         ip = (struct cvs_ignpat *)xmalloc(sizeof(*ip));          ip = xmalloc(sizeof(*ip));
         strlcpy(ip->ip_pat, pat, sizeof(ip->ip_pat));          strlcpy(ip->ip_pat, pat, sizeof(ip->ip_pat));
   
         /* check if we will need globbing for that pattern */          /* check if we will need globbing for that pattern */
Line 1043 
Line 1043 
         size_t nb;          size_t nb;
         CVSFILE *cf, **cfvec;          CVSFILE *cf, **cfvec;
   
         cfvec = (CVSFILE **)calloc((size_t)nfiles, sizeof(CVSFILE *));          cfvec = xcalloc((size_t)nfiles, sizeof(*cfvec));
         if (cfvec == NULL) {  
                 cvs_log(LP_ERRNO, "failed to allocate sorting vector");  
                 return (-1);  
         }  
   
         i = 0;          i = 0;
         SIMPLEQ_FOREACH(cf, flp, cf_list) {          SIMPLEQ_FOREACH(cf, flp, cf_list) {
Line 1103 
Line 1099 
         CVSFILE *cfp;          CVSFILE *cfp;
         char *p;          char *p;
   
         cfp = (CVSFILE *)xmalloc(sizeof(*cfp));          cfp = xcalloc(1, sizeof(*cfp));
         memset(cfp, 0, sizeof(*cfp));  
   
         cfp->cf_type = type;          cfp->cf_type = type;
         cfp->cf_cvstat = CVS_FST_UNKNOWN;          cfp->cf_cvstat = CVS_FST_UNKNOWN;

Legend:
Removed from v.1.135  
changed lines
  Added in v.1.136