summaryrefslogtreecommitdiff
path: root/subversion/libsvn_wc/context.c
diff options
context:
space:
mode:
Diffstat (limited to 'subversion/libsvn_wc/context.c')
-rw-r--r--subversion/libsvn_wc/context.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/subversion/libsvn_wc/context.c b/subversion/libsvn_wc/context.c
index 6ae3fd9..4bf2369 100644
--- a/subversion/libsvn_wc/context.c
+++ b/subversion/libsvn_wc/context.c
@@ -65,10 +65,12 @@ svn_wc_context_create(svn_wc_context_t **wc_ctx,
{
svn_wc_context_t *ctx = apr_pcalloc(result_pool, sizeof(*ctx));
- /* Create the state_pool, and open up a wc_db in it. */
+ /* Create the state_pool, and open up a wc_db in it.
+ * Since config contains a private mutable member but C doesn't support
+ * we need to make it writable */
ctx->state_pool = result_pool;
- SVN_ERR(svn_wc__db_open(&ctx->db, config,
- TRUE, TRUE, ctx->state_pool, scratch_pool));
+ SVN_ERR(svn_wc__db_open(&ctx->db, (svn_config_t *)config,
+ FALSE, TRUE, ctx->state_pool, scratch_pool));
ctx->close_db_on_destroy = TRUE;
apr_pool_cleanup_register(result_pool, ctx, close_ctx_apr,