Skip to content

Commit

Permalink
correct compare api
Browse files Browse the repository at this point in the history
Signed-off-by: Shivshankar-Reddy <[email protected]>
  • Loading branch information
Shivshankar-Reddy committed May 22, 2024
1 parent 6eb1006 commit a3b0576
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/unit/test_zipmap.c
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ int test_zipmapPerformDirectLookup(int argc, char *argv[], int flags) {

if (zipmapGet(zm,(unsigned char*) "foo",3,&value,&vlen)) {
TEST_ASSERT(5 == vlen);
TEST_ASSERT(!strcmp("12345", (const char*)value,vlen));
TEST_ASSERT(!strncmp("12345", (const char*)value,vlen));
}
zfree(zm);
return 0;
Expand Down

0 comments on commit a3b0576

Please sign in to comment.