Diff for /libaitcfg/src/parse.c between versions 1.8.4.1 and 1.8.4.2

version 1.8.4.1, 2012/07/30 09:40:19 version 1.8.4.2, 2012/07/30 10:45:16
Line 367  cfgReadLines(FILE *f, const char *delim, const char *e Line 367  cfgReadLines(FILE *f, const char *delim, const char *e
                 memset(line, 0, sizeof line);                  memset(line, 0, sizeof line);
                 fgets(line, sizeof line - 1, f);                  fgets(line, sizeof line - 1, f);
                 /* check for user end-of-file */                  /* check for user end-of-file */
                if (!strcmp(line, end))                if (!strspn(line, end))
                         break;                          break;
   
                 if (!(psAttr = strpbrk(line, "\r\n"))) {                  if (!(psAttr = strpbrk(line, "\r\n"))) {
Line 376  cfgReadLines(FILE *f, const char *delim, const char *e Line 376  cfgReadLines(FILE *f, const char *delim, const char *e
                 } else {                  } else {
                         *psAttr = 0;                          *psAttr = 0;
                         io_TrimStr(line);                          io_TrimStr(line);
                           if (!*line)
                                   continue;
                 }                  }
                 /* check for comment or empty line */  
                 if (!*line)  
                         continue;  
   
                 ret = io_MakeAV2((char**) &line, delim, psAttr, psVal);                  ret = io_MakeAV2((char**) &line, delim, psAttr, psVal);
                 io_LTrimStr(psVal);                  io_LTrimStr(psVal);

Removed from v.1.8.4.1  
changed lines
  Added in v.1.8.4.2


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>