antirez / sds

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

Fixed empty tokens caused by the location of separator in sdssplitlen() #114

Open XiongKezhi opened 4 years ago

XiongKezhi commented 4 years ago

The tokens will contain empty sds element when the separator is at the beginning or the end of the unsplit string