use newest function normalize_path from libfastcommon

fstore_storage_engine
YuQing 2022-11-07 08:30:49 +08:00
parent 53fea21135
commit 5ca1f6dda6
1 changed files with 4 additions and 1 deletions

View File

@ -260,7 +260,10 @@ int sf_load_global_base_path(IniFullContext *ini_ctx);
static inline void sf_set_global_base_path(const char *base_path) static inline void sf_set_global_base_path(const char *base_path)
{ {
normalize_path(NULL, base_path, SF_G_BASE_PATH_STR, string_t path_string;
FC_SET_STRING(path_string, (char *)base_path);
normalize_path(NULL, &path_string, SF_G_BASE_PATH_STR,
sizeof(SF_G_BASE_PATH_STR)); sizeof(SF_G_BASE_PATH_STR));
SF_G_BASE_PATH_INITED = true; SF_G_BASE_PATH_INITED = true;
} }