Skip to content

Commit 0a7f23f

Browse files
committed
Revert "Avoid passing NULL into from_raw_parts in case there are zero arguments on module load. (#371)"
This reverts commit 46922b1.
1 parent ed958ba commit 0a7f23f

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

src/redismodule.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -101,9 +101,6 @@ 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-
}
107104
unsafe { slice::from_raw_parts(argv, argc as usize) }
108105
.iter()
109106
.map(|&arg| RedisString::new(NonNull::new(ctx), arg))

0 commit comments

Comments
 (0)