Why segmentation fault

in line no 30 you have use single equal to instead of doble

correct one is
if(root==NULL){
return;
}