修复gs_initdb没指定-D参数coredump问题。

This commit is contained in:
playrest
2021-02-08 19:45:11 +08:00
parent 6b90131ab8
commit 3a37801788

View File

@ -228,7 +228,7 @@ static const char* backend_options = "--single "
#define FREE_AND_RESET(ptr) \
do { \
if (NULL != (ptr)) { \
if (NULL != (ptr) && (char*)(ptr) != (char*)"") { \
free(ptr); \
(ptr) = NULL; \
} \