diff --git a/H/sshift.h b/H/sshift.h index 6ac683f0a..9263b366c 100755 --- a/H/sshift.h +++ b/H/sshift.h @@ -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 *);