* subversion/tests/libsvn_ra/ra-test.c
(lock_cb): Use svn_lock_dup() instead of making a field-by-field copy
of the svn_lock_t.
@@ -427,17 +427,7 @@ lock_cb(void *baton,
struct lock_result_t *result = apr_palloc(b->pool,
sizeof(struct lock_result_t));
- if (lock)
- {
- result->lock = apr_palloc(b->pool, sizeof(svn_lock_t));
- *result->lock = *lock;
- result->lock->path = apr_pstrdup(b->pool, lock->path);
- result->lock->token = apr_pstrdup(b->pool, lock->token);
- result->lock->owner = apr_pstrdup(b->pool, lock->owner);
- result->lock->comment = apr_pstrdup(b->pool, lock->comment);
- }
- else
- result->lock = NULL;
+ result->lock = svn_lock_dup(lock, b->pool);
result->err = ra_err;
svn_hash_sets(b->results, apr_pstrdup(b->pool, path), result);
