null pointer in errorr handling
This commit is contained in:
parent
57161d83f4
commit
8f489b0799
@ -504,8 +504,11 @@ static Int find_code_in_clause(PredEntry *pp, yamop *codeptr, void **startp,
|
||||
|
||||
cl = ClauseCodeToStaticClause(clcode);
|
||||
do {
|
||||
if (IN_BLOCK(codeptr, cl, cl->ClSize)) {
|
||||
if (startp)
|
||||
if (cl == NULL)
|
||||
return 0;
|
||||
if (IN_BLOCK(codeptr, cl, cl->ClSize)) {
|
||||
if
|
||||
(startp)
|
||||
*startp = (CODEADDR)cl;
|
||||
if (endp)
|
||||
*endp = (CODEADDR)cl + cl->ClSize;
|
||||
|
Reference in New Issue
Block a user