git: b774fbdb0077 - main - libc/db: Correct a typo in the the hash tampering test

From: Bojan Novković <bnovkov_at_FreeBSD.org>
Date: Fri, 18 Sep 2026 14:15:45 UTC
The branch main has been updated by bnovkov:

URL: https://cgit.FreeBSD.org/src/commit/?id=b774fbdb0077571dd34ca55ecb87199895ff47d3

commit b774fbdb0077571dd34ca55ecb87199895ff47d3
Author:     Bojan Novković <bnovkov@FreeBSD.org>
AuthorDate: 2026-09-18 14:13:17 +0000
Commit:     Bojan Novković <bnovkov@FreeBSD.org>
CommitDate: 2026-09-18 14:15:20 +0000

    libc/db: Correct a typo in the the hash tampering test
    
    Fixes the gcc build.
    
    Fixes:  7f5f07b139a5
---
 lib/libc/tests/db/db_hash_tamper_test.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/libc/tests/db/db_hash_tamper_test.c b/lib/libc/tests/db/db_hash_tamper_test.c
index ce16c8071b63..9321b25722c1 100644
--- a/lib/libc/tests/db/db_hash_tamper_test.c
+++ b/lib/libc/tests/db/db_hash_tamper_test.c
@@ -47,7 +47,7 @@ create_db(void)
 	ATF_CHECK(db != NULL);
 	ATF_REQUIRE(atf_utils_file_exists(dbname));
 
-	ATF_REQUIRE(db->put(db, &key, &key, 0) == 0);
+	ATF_REQUIRE(db->put(db, &key, &val, 0) == 0);
 
 	db->close(db);
 }