[BACK]Return to fts.c CVS log [TXT][DIR] 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.

Diff for /src/lib/libc/gen/fts.c between version 1.48 and 1.49

version 1.48, 2015/01/29 15:55:21 version 1.49, 2016/05/31 07:49:09
Line 133  fts_open(char * const *argv, int options
Line 133  fts_open(char * const *argv, int options
         }          }
   
         /* 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;
   

Legend:
Removed from v.1.48  
changed lines
  Added in v.1.49

CVSweb <webmaster@jp.NetBSD.org>