From 52b51b1ba769ffa25337b1b254c494db22835a50 Mon Sep 17 00:00:00 2001 From: Sandrine Avakian Date: Mon, 23 May 2016 11:53:18 +0200 Subject: [PATCH] Use default vfs. --- coreapi/lpconfig.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/coreapi/lpconfig.c b/coreapi/lpconfig.c index 6e7606adf..b397140e2 100644 --- a/coreapi/lpconfig.c +++ b/coreapi/lpconfig.c @@ -402,7 +402,8 @@ LpConfig *lp_config_new_with_factory(const char *config_filename, const char *fa bctbx_vfs_file_t* pFile = NULL; LpConfig *lpconfig=lp_new0(LpConfig,1); - bctbx_vfs_register(bc_create_vfs(),&lpconfig->g_bctbx_vfs); + bctbx_vfs_set_default(NULL); + lpconfig->g_bctbx_vfs = bctbx_vfs_get_default(); lpconfig->refcnt=1; if (config_filename!=NULL){