!2894 同时指定no-locale和locale参数时,gs_initdb出现coredump

Merge pull request !2894 from zhang_jintao2020/gs_initdb
This commit is contained in:
opengauss-bot 2023-03-07 07:28:42 +00:00 committed by Gitee
commit cb4bb56d8d
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
1 changed files with 1 additions and 1 deletions

View File

@ -4205,7 +4205,7 @@ int main(int argc, char* argv[])
break;
case 8:
FREE_NOT_STATIC_ZERO_STRING(locale);
locale = "C";
locale = xstrdup("C");
break;
case 9:
FREE_NOT_STATIC_ZERO_STRING(pwfilename);