diff options
author | Lorry Tar Creator <lorry-tar-importer@baserock.org> | 2015-03-18 13:33:26 +0000 |
---|---|---|
committer | <> | 2015-07-08 14:41:01 +0000 |
commit | bb0ef45f7c46b0ae221b26265ef98a768c33f820 (patch) | |
tree | 98bae10dde41c746c51ae97ec4f879e330415aa7 /subversion/libsvn_wc/context.c | |
parent | 239dfafe71711b2f4c43d7b90a1228d7bdc5195e (diff) | |
download | subversion-tarball-subversion-1.8.13.tar.gz |
Imported from /home/lorry/working-area/delta_subversion-tarball/subversion-1.8.13.tar.gz.subversion-1.8.13
Diffstat (limited to 'subversion/libsvn_wc/context.c')
-rw-r--r-- | subversion/libsvn_wc/context.c | 8 |
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, |