Skip to content

Commit

Permalink
Update rebloom.c
Browse files Browse the repository at this point in the history
  • Loading branch information
LiorKogan committed Oct 30, 2023
1 parent aad4b93 commit e54a5d0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/rebloom.c
Original file line number Diff line number Diff line change
Expand Up @@ -1340,11 +1340,11 @@ int RedisModule_OnLoad(RedisModuleCtx *ctx, RedisModuleString **argv, int argc)
REBLOOM_VERSION_MINOR, REBLOOM_VERSION_PATCH, REDISBLOOM_GIT_SHA);

if (argc == 1) {
RedisModule_Log(ctx, "notice", "Found empty string. Assuming ramp-packer validation");
// Hack for ramp-packer which gives us an empty string.
size_t tmp;
RedisModule_StringPtrLen(argv[0], &tmp);
if (tmp == 0) {
RedisModule_Log(ctx, "notice", "Found empty string. Assuming ramp-packer validation");

Check warning on line 1346 in src/rebloom.c

View check run for this annotation

Codecov / codecov/patch

src/rebloom.c#L1346

Added line #L1346 was not covered by tests
// Hack for ramp-packer which gives us an empty string.
argc = 0;
}
}
Expand Down

0 comments on commit e54a5d0

Please sign in to comment.