Taking the code that you have + the error report, it appears as though Tree
would look something like this:
typedef struct Tree_s
{
struct Tree_s *L;
struct Tree_s *R;
} Tree;
It would also appear that Tree->L
that was passed to rotateLeftRight
was NULL