Skip to content

Commit

Permalink
Merge pull request #372 from RedisLabsModules/oshadmi_cp-from-master-…
Browse files Browse the repository at this point in the history
…to-2.0.7

[2.0] CP from master and bump version to to 2.0.7
  • Loading branch information
oshadmi authored Oct 22, 2023
2 parents 0a7f23f + 4a2662b commit 531d676
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "redis-module"
version = "2.0.6"
version = "2.0.7"
authors = ["Gavrie Philipson <[email protected]>", "Guy Korland <[email protected]>"]
edition = "2021"
build = "build.rs"
Expand Down
3 changes: 3 additions & 0 deletions src/redismodule.rs
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,9 @@ pub fn decode_args(
argv: *mut *mut raw::RedisModuleString,
argc: c_int,
) -> Vec<RedisString> {
if argv.is_null() {
return Vec::new();
}
unsafe { slice::from_raw_parts(argv, argc as usize) }
.iter()
.map(|&arg| RedisString::new(NonNull::new(ctx), arg))
Expand Down

0 comments on commit 531d676

Please sign in to comment.