Skip to content

Commit 531d676

Browse files
authored
Merge pull request #372 from RedisLabsModules/oshadmi_cp-from-master-to-2.0.7
[2.0] CP from master and bump version to to 2.0.7
2 parents 0a7f23f + 4a2662b commit 531d676

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "redis-module"
3-
version = "2.0.6"
3+
version = "2.0.7"
44
authors = ["Gavrie Philipson <gavrie@redis.com>", "Guy Korland <guy.korland@redis.com>"]
55
edition = "2021"
66
build = "build.rs"

src/redismodule.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,9 @@ pub fn decode_args(
101101
argv: *mut *mut raw::RedisModuleString,
102102
argc: c_int,
103103
) -> Vec<RedisString> {
104+
if argv.is_null() {
105+
return Vec::new();
106+
}
104107
unsafe { slice::from_raw_parts(argv, argc as usize) }
105108
.iter()
106109
.map(|&arg| RedisString::new(NonNull::new(ctx), arg))

0 commit comments

Comments
 (0)