mirror of
https://github.com/php/php-src.git
synced 2024-09-22 10:27:25 +00:00
MFB: Fixed potential use of un-initialized var
This commit is contained in:
parent
6636616ae9
commit
59639f3de7
@ -1553,6 +1553,11 @@ register struct re_guts *g;
|
||||
if (g->mlen == 0) /* there isn't one */
|
||||
return;
|
||||
|
||||
if (!start) {
|
||||
g->mlen = 0;
|
||||
return;
|
||||
}
|
||||
|
||||
/* turn it into a character string */
|
||||
g->must = malloc((size_t)g->mlen + 1);
|
||||
if (g->must == NULL) { /* argh; just forget it */
|
||||
|
@ -1553,6 +1553,11 @@ register struct re_guts *g;
|
||||
if (g->mlen == 0) /* there isn't one */
|
||||
return;
|
||||
|
||||
if (!start) {
|
||||
g->mlen = 0;
|
||||
return;
|
||||
}
|
||||
|
||||
/* turn it into a character string */
|
||||
g->must = malloc((size_t)g->mlen + 1);
|
||||
if (g->must == NULL) { /* argh; just forget it */
|
||||
|
Loading…
Reference in New Issue
Block a user