yshysh

Results 2 issues of yshysh

I think check "if (sh == NULL) return NULL;" should be ahead, if not, core dump will happen.