From 94bdda200fba96b6eb950617ef35f54f5698dfa5 Mon Sep 17 00:00:00 2001 From: Vitor Santos Costa Date: Fri, 4 Feb 2011 01:41:01 +0000 Subject: [PATCH] make sure we have NULL pointers --- H/sshift.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 *);