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

Diff for /src/usr.bin/cvs/entries.c between version 1.54 and 1.55

version 1.54, 2006/01/02 08:11:56 version 1.55, 2006/04/05 01:38:55
Line 105 
Line 105 
                 return (NULL);                  return (NULL);
         }          }
   
         ep = (CVSENTRIES *)xmalloc(sizeof(CVSENTRIES));          ep = xcalloc(1, sizeof(*ep));
         memset(ep, 0, sizeof(*ep));  
   
         ep->cef_path = xstrdup(entpath);          ep->cef_path = xstrdup(entpath);
         ep->cef_bpath = xstrdup(bpath);          ep->cef_bpath = xstrdup(bpath);
Line 380 
Line 379 
                 return (NULL);                  return (NULL);
         }          }
   
         ent = (struct cvs_ent *)xmalloc(sizeof(*ent));          ent = xcalloc(1, sizeof(*ent));
         memset(ent, 0, sizeof(*ent));  
         ent->ce_buf = buf;          ent->ce_buf = buf;
   
         if (*fields[0] == '\0')          if (*fields[0] == '\0')

Legend:
Removed from v.1.54  
changed lines
  Added in v.1.55