Return to fts.c CVS log | Up to [cvs.NetBSD.org] / src / lib / libc / gen |
Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. |
version 1.48, 2015/01/29 15:55:21 | version 1.49, 2016/05/31 07:49:09 | ||
---|---|---|---|
|
|
||
} | } | ||
/* Allocate/initialize the stream */ | /* Allocate/initialize the stream */ | ||
if ((sp = malloc(sizeof(FTS))) == NULL) | if ((sp = calloc(1, sizeof(FTS))) == NULL) | ||
return (NULL); | return (NULL); | ||
memset(sp, 0, sizeof(FTS)); | |||
sp->fts_compar = compar; | sp->fts_compar = compar; | ||
sp->fts_options = options; | sp->fts_options = options; | ||