Return to file.c CVS log | Up to [local] / src / usr.bin / cvs |
version 1.41, 2004/12/08 19:44:28 | version 1.42, 2004/12/08 19:54:11 | ||
---|---|---|---|
|
|
||
} | } | ||
fnp->cf_name = strdup(name); | fnp->cf_name = strdup(name); | ||
if (fnp->cf_name == NULL) { | |||
cvs_log(LP_ERRNO, "failed to duplicate name"); | |||
free(fnp); | |||
return (NULL); | |||
} | |||
fnp->cf_ref = 1; | fnp->cf_ref = 1; | ||
SLIST_INSERT_HEAD(&(cvs_fnht[h]), fnp, cf_list); | SLIST_INSERT_HEAD(&(cvs_fnht[h]), fnp, cf_list); | ||
} | } |