mirror of
https://github.com/samba-team/samba.git
synced 2024-12-23 17:34:34 +03:00
ctdb-tests: Fix CID 1327218-1327221
Signed-off-by: Amitay Isaacs <amitay@gmail.com> Autobuild-User(master): Volker Lendecke <vl@samba.org> Autobuild-Date(master): Wed Oct 14 13:32:02 CEST 2015 on sn-devel-104
This commit is contained in:
parent
880b79addc
commit
cf89c7f42e
@ -27,9 +27,8 @@ static void do_test(enum db_hash_type type)
|
||||
{
|
||||
struct db_hash_context *dh;
|
||||
TALLOC_CTX *mem_ctx = talloc_new(NULL);
|
||||
TALLOC_CTX *tmp_ctx = talloc_new(NULL);
|
||||
uint8_t *key = (uint8_t *)talloc_strdup(tmp_ctx, "This is a long key");
|
||||
uint8_t *value = (uint8_t *)talloc_strdup(tmp_ctx, "This is a long value");
|
||||
uint8_t key[] = "This is a long key";
|
||||
uint8_t value[] = "This is a long value";
|
||||
int ret;
|
||||
|
||||
ret = db_hash_init(mem_ctx, "foobar", 1024, type, &dh);
|
||||
|
Loading…
Reference in New Issue
Block a user