diff options
Diffstat (limited to 'lib/tdb2/test/run-tdb1-wronghash-fail.c')
-rw-r--r-- | lib/tdb2/test/run-tdb1-wronghash-fail.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/tdb2/test/run-tdb1-wronghash-fail.c b/lib/tdb2/test/run-tdb1-wronghash-fail.c index 19f926c787..6a9dae3a70 100644 --- a/lib/tdb2/test/run-tdb1-wronghash-fail.c +++ b/lib/tdb2/test/run-tdb1-wronghash-fail.c @@ -58,8 +58,7 @@ int main(int argc, char *argv[]) O_CREAT|O_RDWR|O_TRUNC, 0600, &log_attr); ok1(tdb); ok1(log_count == 0); - d.dptr = (void *)"Hello"; - d.dsize = 5; + d = tdb_mkdata("Hello", strlen("Hello")); ok1(tdb_store(tdb, d, d, TDB_INSERT) == TDB_SUCCESS); tdb_close(tdb); |