1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-30 16:24:05 +03:00

more refinement of IM patch to fix Windows pathnames with spaces

This commit is contained in:
reggie@fedora.(none)
2005-11-02 06:51:44 -06:00
parent 27e8da7985
commit e3ff45d61e
2 changed files with 8 additions and 9 deletions

View File

@ -334,12 +334,13 @@ int Instance_options::complete_initialization(const char *default_path,
uint instance_type)
{
const char *tmp;
char* end;
if (!mysqld_path && !(mysqld_path= strdup_root(&alloc, default_path)))
goto err;
// it's safe to cast this to char* since this is a buffer we are allocating
char* end= convert_dirname((char*)mysqld_path, mysqld_path, NullS);
end= convert_dirname((char*)mysqld_path, mysqld_path, NullS);
end[-1]= 0;
mysqld_path_len= strlen(mysqld_path);