We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 0a7f23f + 4a2662b commit 531d676Copy full SHA for 531d676
Cargo.toml
@@ -1,6 +1,6 @@
1
[package]
2
name = "redis-module"
3
-version = "2.0.6"
+version = "2.0.7"
4
authors = ["Gavrie Philipson <gavrie@redis.com>", "Guy Korland <guy.korland@redis.com>"]
5
edition = "2021"
6
build = "build.rs"
src/redismodule.rs
@@ -101,6 +101,9 @@ pub fn decode_args(
101
argv: *mut *mut raw::RedisModuleString,
102
argc: c_int,
103
) -> Vec<RedisString> {
104
+ if argv.is_null() {
105
+ return Vec::new();
106
+ }
107
unsafe { slice::from_raw_parts(argv, argc as usize) }
108
.iter()
109
.map(|&arg| RedisString::new(NonNull::new(ctx), arg))
0 commit comments