mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-18 10:35:55 +00:00
regex(3): Fix uninitialized pointer values.
CID: 405582 (also clang static checker) CID: 1018724
This commit is contained in:
parent
7abb0b0922
commit
d58abbfe0f
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=279090
@ -157,7 +157,7 @@ matcher(struct re_guts *g,
|
||||
int i;
|
||||
struct match mv;
|
||||
struct match *m = &mv;
|
||||
const char *dp;
|
||||
const char *dp = NULL;
|
||||
const sopno gf = g->firststate+1; /* +1 for OEND */
|
||||
const sopno gl = g->laststate;
|
||||
const char *start;
|
||||
|
@ -1422,8 +1422,8 @@ static void
|
||||
findmust(struct parse *p, struct re_guts *g)
|
||||
{
|
||||
sop *scan;
|
||||
sop *start;
|
||||
sop *newstart;
|
||||
sop *start = NULL;
|
||||
sop *newstart = NULL;
|
||||
sopno newlen;
|
||||
sop s;
|
||||
char *cp;
|
||||
|
Loading…
Reference in New Issue
Block a user