In sds.c line 798 comment says:" On out of memory, zero length string, zero length separator, NULL is returned." But the code in line 820 is wrote : ======================================================== sds sdssplitlen(const char s, ssize_t len, const char sep, int seplen, int count) { tokens = s_malloc(sizeof(sds)slots); if (tokens == NULL) return NULL; if (len == 0) { count = 0; return tokens; } I think when len is equal to zero , NULL is not returned. Is the line 820 needed to move up to line 817 ? ========================================================

Comment From: RainbowMango

I met this problem too. And I sent a PP for that.

4909

Comment From: yoav-steinberg

Fixed by #4909. Closing.