X-Git-Url: https://git.saurik.com/redis.git/blobdiff_plain/10c12171cc2f94087c85651b14831c1e52daa087..9b24d8adbeb2fb4ff663f3b205b73d55425f0d4f:/src/ziplist.c diff --git a/src/ziplist.c b/src/ziplist.c index a9923d65..a1a63478 100644 --- a/src/ziplist.c +++ b/src/ziplist.c @@ -595,7 +595,12 @@ unsigned char *ziplistIndex(unsigned char *zl, int index) { return (p[0] == ZIP_END || index > 0) ? NULL : p; } -/* Return pointer to next entry in ziplist. */ +/* Return pointer to next entry in ziplist. + * + * zl is the pointer to the ziplist + * p is the pointer to the current element + * + * The element after 'p' is returned, otherwise NULL if we are at the end. */ unsigned char *ziplistNext(unsigned char *zl, unsigned char *p) { ((void) zl);