Diff for /libaitcfg/src/parse.c between versions 1.7 and 1.8

version 1.7, 2012/04/04 13:11:49 version 1.8, 2012/07/22 21:54:47
Line 121  int cfgReadConfig(FILE *f, cfg_root_t * __restrict cfg Line 121  int cfgReadConfig(FILE *f, cfg_root_t * __restrict cfg
                 }                  }
   
                 /* *NEW PAIR* alloc new pair element */                  /* *NEW PAIR* alloc new pair element */
                av = malloc(sizeof(struct tagCfg));                av = io_malloc(sizeof(struct tagCfg));
                 if (!av) {                  if (!av) {
                         LOGERR;                          LOGERR;
                         return -1;                          return -1;
Line 133  int cfgReadConfig(FILE *f, cfg_root_t * __restrict cfg Line 133  int cfgReadConfig(FILE *f, cfg_root_t * __restrict cfg
                 }                  }
   
                 /* check for continues line */                  /* check for continues line */
                psAttr = line + strlen(line) - 1;                psAttr = line + (*line ? strlen(line) : 1) - 1;
                 if (*psAttr == '\\') {                  if (*psAttr == '\\') {
                         *psAttr = 0;                          *psAttr = 0;
                         flg = 1;                          flg = 1;

Removed from v.1.7  
changed lines
  Added in v.1.8


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