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

Diff for /src/usr.bin/cvs/trigger.c between version 1.13 and 1.14

version 1.13, 2008/06/17 17:09:21 version 1.14, 2008/06/17 17:15:56
Line 322 
Line 322 
         char fpath[MAXPATHLEN];          char fpath[MAXPATHLEN];
         char *currentline, *defaultline = NULL, *nline, *p, *q, *regex;          char *currentline, *defaultline = NULL, *nline, *p, *q, *regex;
   
         list = xmalloc(sizeof(*list));  
         TAILQ_INIT(list);  
   
         if (strcmp(file, CVS_PATH_EDITINFO) == 0 ||          if (strcmp(file, CVS_PATH_EDITINFO) == 0 ||
             strcmp(file, CVS_PATH_VERIFYMSG) == 0)              strcmp(file, CVS_PATH_VERIFYMSG) == 0)
                 allow_all = 0;                  allow_all = 0;
Line 340 
Line 337 
                 return (NULL);                  return (NULL);
         }          }
   
           list = xmalloc(sizeof(*list));
           TAILQ_INIT(list);
   
         lineno = 0;          lineno = 0;
         nline = NULL;          nline = NULL;
         while ((currentline = fgetln(fp, &len)) != NULL) {          while ((currentline = fgetln(fp, &len)) != NULL) {
Line 409 
Line 409 
                         xfree(defaultline);                          xfree(defaultline);
         }          }
   
           (void)fclose(fp);
   
         if (TAILQ_EMPTY(list)) {          if (TAILQ_EMPTY(list)) {
                 xfree(list);                  xfree(list);
                 list = NULL;                  list = NULL;
Line 423 
Line 425 
                 xfree(defaultline);                  xfree(defaultline);
         cvs_trigger_freelist(list);          cvs_trigger_freelist(list);
   
           (void)fclose(fp);
   
         return (NULL);          return (NULL);
 }  }
   

Legend:
Removed from v.1.13  
changed lines
  Added in v.1.14