make sure we have NULL pointers

This commit is contained in:
Vitor Santos Costa 2011-02-04 01:41:01 +00:00
parent 9bdc7ca96e
commit 94bdda200f

View File

@ -659,7 +659,8 @@ inline EXTERN yamop *PtoOpAdjust (yamop *);
inline EXTERN yamop *
PtoOpAdjust (yamop * ptr)
{
return (yamop *) (CharP (ptr) + HDiff);
if (ptr)
return (yamop *) (CharP (ptr) + HDiff);
}
inline EXTERN struct operator_entry *OpListAdjust (struct operator_entry *);