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

This commit is contained in:
zhangjintao
2023-02-10 22:38:38 -08:00
parent 39c2d3eeef
commit 13d461869b

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);