/[pcre]/code/tags/pcre-4.0/pcretest.c
ViewVC logotype

Diff of /code/tags/pcre-4.0/pcretest.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 53 by nigel, Sat Feb 24 21:39:42 2007 UTC revision 55 by nigel, Sat Feb 24 21:39:46 2007 UTC
# Line 1010  while (!done) Line 1010  while (!done)
1010          while(isdigit(*p)) n = n * 10 + *p++ - '0';          while(isdigit(*p)) n = n * 10 + *p++ - '0';
1011          if (n > size_offsets_max)          if (n > size_offsets_max)
1012            {            {
1013    
1014    if (offsets != NULL)
1015    
1016            free(offsets);            free(offsets);
1017            size_offsets_max = n;            size_offsets_max = n;
1018            offsets = malloc(size_offsets_max * sizeof(int));            offsets = malloc(size_offsets_max * sizeof(int));
# Line 1021  while (!done) Line 1024  while (!done)
1024              }              }
1025            }            }
1026          use_size_offsets = n;          use_size_offsets = n;
1027    
1028    if (n == 0)
1029      {
1030      free(offsets);
1031      offsets = NULL;
1032      size_offsets_max = 0;
1033      }
1034    
1035          continue;          continue;
1036    
1037          case 'Z':          case 'Z':

Legend:
Removed from v.53  
changed lines
  Added in v.55

webmaster@exim.org
ViewVC Help
Powered by ViewVC 1.1.12