From cf89c7f42ef7f2a8954cb3a9920f80ee4fddfb5f Mon Sep 17 00:00:00 2001 From: Amitay Isaacs Date: Wed, 14 Oct 2015 10:09:08 +1100 Subject: [PATCH] ctdb-tests: Fix CID 1327218-1327221 Signed-off-by: Amitay Isaacs Autobuild-User(master): Volker Lendecke Autobuild-Date(master): Wed Oct 14 13:32:02 CEST 2015 on sn-devel-104 --- ctdb/tests/src/db_hash_test.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/ctdb/tests/src/db_hash_test.c b/ctdb/tests/src/db_hash_test.c index e05d1168776..cc8a689dba8 100644 --- a/ctdb/tests/src/db_hash_test.c +++ b/ctdb/tests/src/db_hash_test.c @@ -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);