antirez / sds

Simple Dynamic Strings library for C
BSD 2-Clause "Simplified" License
4.93k stars 480 forks source link

repair malloc fail bug #89

Open yshysh opened 6 years ago

yshysh commented 6 years ago

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