Skip to content

Commit 44f9e0d

Browse files
authored
RedisModule_HashSet call must end with NULL
Extended the RedisModule_HashSet doc to mark that each call must end with NULL
1 parent c560ade commit 44f9e0d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/module.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2150,7 +2150,9 @@ int RM_ZsetRangePrev(RedisModuleKey *key) {
21502150
*
21512151
* The function is variadic and the user must specify pairs of field
21522152
* names and values, both as RedisModuleString pointers (unless the
2153-
* CFIELD option is set, see later).
2153+
* CFIELD option is set, see later). At the end of the field/value-ptr pairs,
2154+
* NULL must be specified as last argument to signal the end of the arguments
2155+
* in the variadic function.
21542156
*
21552157
* Example to set the hash argv[1] to the value argv[2]:
21562158
*

0 commit comments

Comments
 (0)