Eliminate a null pointer dereference when processing prototyped function declarators.

This should normally have been harmless, but might possibly give an error in obscure circumstances.
This commit is contained in:
Stephen Heumann 2019-12-22 22:16:03 -06:00
parent 2fb075ce58
commit b88dc5b39c

View File

@ -1617,8 +1617,8 @@ if checkParms then begin {check for parameter type conflicts}
end; {with}
end {if}
else if doingParameters then
if pfunc^.itype^.prototyped then
if not doingPrototypes then
if not doingPrototypes then
if pfunc^.itype^.prototyped then
if tPtr^.kind in
[enumConst,structType,unionType,definedType,pointerType]
then Error(50);