提交 93ca7b42 编写于 作者: Y YuQing

ini_file_reader.c: fix empty string compare

上级 c1f0d855
Version 1.41 2019-09-22
* change CIDR network_bits range from [16, 32) to [10, 32)
* ini_file_reader.c: fix empty string compare
Version 1.40 2018-11-09
* add function conn_pool_parse_server_info and conn_pool_load_server_info
* support directive: #@add_annotation, for example:
......
......@@ -851,14 +851,14 @@ static int iniAddAnnotation(char *params)
func_name = fc_trim(cols[0]);
library = fc_trim(cols[1]);
if (func_name == '\0')
if (*func_name == '\0')
{
logError("file: "__FILE__", line: %d, "
"empty func name, correct format: "
"#@add_annotation FUNC_NAME library ...", __LINE__);
return EINVAL;
}
if (library == '\0')
if (*library == '\0')
{
logError("file: "__FILE__", line: %d, "
"empty library, correct format: "
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册