[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.31 and 1.32

version 1.31, 2009/10/27 23:59:43 version 1.32, 2010/07/01 17:02:02
Line 357 
Line 357 
         else if (c == '\n')          else if (c == '\n')
                 err(COMPILE, "newline can not be used as a string delimiter");                  err(COMPILE, "newline can not be used as a string delimiter");
         while (*p) {          while (*p) {
                 if (*p == '[') {                  if (*p == '[' && *p != c) {
                         if ((d = compile_ccl(&p, d)) == NULL)                          if ((d = compile_ccl(&p, d)) == NULL)
                                 err(COMPILE, "unbalanced brackets ([])");                                  err(COMPILE, "unbalanced brackets ([])");
                         continue;                          continue;

Legend:
Removed from v.1.31  
changed lines
  Added in v.1.32