Skip to content

Commit

Permalink
Revert "Avoid passing NULL into from_raw_parts in case there are zero…
Browse files Browse the repository at this point in the history
… arguments on module load. (#371)"

This reverts commit 46922b1.
  • Loading branch information
oshadmi committed Oct 22, 2023
1 parent ed958ba commit 0a7f23f
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/redismodule.rs
Original file line number Diff line number Diff line change
Expand Up @@ -101,9 +101,6 @@ 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 0a7f23f

Please sign in to comment.