X-Git-Url: https://git.saurik.com/redis.git/blobdiff_plain/2612e0521fde55db2c720092d4ad02a8f015f46e..1333f98dd2ff2aae4e4c2a9a43d7b83a0b1af8aa:/src/ziplist.c?ds=inline 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);