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

Diff for /src/usr.bin/cvs/config.c between version 1.1 and 1.2

version 1.1, 2006/05/27 18:04:46 version 1.2, 2006/05/27 21:10:53
Line 30 
Line 30 
         FILE *fp;          FILE *fp;
         size_t len;          size_t len;
         const char *errstr;          const char *errstr;
         char *buf, *lbuf, *opt, *val, fpath[MAXPATHLEN];          char *p, *buf, *lbuf, *opt, *val, fpath[MAXPATHLEN];
   
         i = snprintf(fpath, sizeof(fpath), "%s/%s", current_cvsroot->cr_dir,          i = snprintf(fpath, sizeof(fpath), "%s/%s", current_cvsroot->cr_dir,
             CVS_PATH_CONFIG);              CVS_PATH_CONFIG);
Line 51 
Line 51 
                         buf = lbuf;                          buf = lbuf;
                 }                  }
   
                 opt = buf;                  p = buf;
                   while (*p == ' ')
                           p++;
   
                   if (p[0] == '#' || p[0] == '\0') {
                           if (lbuf != NULL)
                                   xfree(lbuf);
                           continue;
                   }
   
                   opt = p;
                 if ((val = strrchr(opt, '=')) == NULL)                  if ((val = strrchr(opt, '=')) == NULL)
                         fatal("cvs_parse_configfile: bad option '%s'", opt);                          fatal("cvs_parse_configfile: bad option '%s'", opt);
   

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2