File tree Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -1553,6 +1553,11 @@ register struct re_guts *g;
1553
1553
if (g -> mlen == 0 ) /* there isn't one */
1554
1554
return ;
1555
1555
1556
+ if (!start ) {
1557
+ g -> mlen = 0 ;
1558
+ return ;
1559
+ }
1560
+
1556
1561
/* turn it into a character string */
1557
1562
g -> must = malloc ((size_t )g -> mlen + 1 );
1558
1563
if (g -> must == NULL ) { /* argh; just forget it */
Original file line number Diff line number Diff line change @@ -1553,6 +1553,11 @@ register struct re_guts *g;
1553
1553
if (g -> mlen == 0 ) /* there isn't one */
1554
1554
return ;
1555
1555
1556
+ if (!start ) {
1557
+ g -> mlen = 0 ;
1558
+ return ;
1559
+ }
1560
+
1556
1561
/* turn it into a character string */
1557
1562
g -> must = malloc ((size_t )g -> mlen + 1 );
1558
1563
if (g -> must == NULL ) { /* argh; just forget it */
You can’t perform that action at this time.
0 commit comments