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

Diff for /src/usr.bin/find/main.c between version 1.16 and 1.17

version 1.16, 2003/06/10 22:20:46 version 1.17, 2003/09/26 22:22:26
Line 63 
Line 63 
 main(int argc, char *argv[])  main(int argc, char *argv[])
 {  {
         struct sigaction sa;          struct sigaction sa;
         char **p, **paths;          char **p, **paths, **paths2;
         int ch;          int ch;
   
         memset(&sa, 0, sizeof sa);          memset(&sa, 0, sizeof sa);
Line 126 
Line 126 
                 usage();                  usage();
         *p = NULL;          *p = NULL;
   
         if (!(paths = realloc(paths, sizeof(char *) * (p - paths + 1))))          if (!(paths2 = realloc(paths, sizeof(char *) * (p - paths + 1))))
                 err(1, NULL);                  err(1, NULL);
           paths = paths2;
   
         if ((dotfd = open(".", O_RDONLY, 0)) < 0)          if ((dotfd = open(".", O_RDONLY, 0)) < 0)
                 err(1, ".:");                  err(1, ".:");

Legend:
Removed from v.1.16  
changed lines
  Added in v.1.17