Bug fix for segmentation fault caused by multi format definition command
This commit is contained in:
parent
7193a15f95
commit
df1b0ae60f
@ -94,9 +94,11 @@ int main(int argc, char *argv[])
|
||||
|
||||
// 添加到类型列表中
|
||||
{
|
||||
// 静态列表指针,支持多段格式串输入
|
||||
static format_list_node *target_format_node = nullptr;
|
||||
|
||||
char *p_param = argv[count + 1];
|
||||
int param_len = strlen(argv[count + 1]);
|
||||
format_list_node *target_format_node = nullptr;
|
||||
while (p_param - argv[count + 1] < param_len)
|
||||
{
|
||||
// 分配空间
|
||||
|
Loading…
x
Reference in New Issue
Block a user