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

Diff for /src/usr.bin/sed/compile.c between version 1.26 and 1.27

version 1.26, 2008/10/09 16:40:56 version 1.27, 2008/10/09 21:14:58
Line 463 
Line 463 
         char c, *text, *op, *sp;          char c, *text, *op, *sp;
         int sawesc = 0;          int sawesc = 0;
   
         if (!lbuf)  
                 lbuf = xmalloc(len);  
   
         c = *p++;                       /* Terminator character */          c = *p++;                       /* Terminator character */
         if (c == '\0')          if (c == '\0')
                 return (NULL);                  return (NULL);
Line 473 
Line 470 
         len = strlen(p);          len = strlen(p);
         if (len < _POSIX2_LINE_MAX)          if (len < _POSIX2_LINE_MAX)
                 len = _POSIX2_LINE_MAX;                  len = _POSIX2_LINE_MAX;
           if (!lbuf)
                   lbuf = xmalloc(len);
   
         s->maxbref = 0;          s->maxbref = 0;
         s->linenum = linenum;          s->linenum = linenum;
         asize = 2 * len + 1;          asize = 2 * len + 1;

Legend:
Removed from v.1.26  
changed lines
  Added in v.1.27