Commit e8f57338 authored by Hardy Simpson's avatar Hardy Simpson

bugfix: file_limit pointer cause Segmentation fault

parent 9ff2215b
......@@ -835,9 +835,8 @@ zlog_rule_t *zlog_rule_new(char *line,
break;
case '$' :
sscanf(file_path + 1, "%s", a_rule->record_name);
if (*file_limit != '\0') { /* record path exists */
if (file_limit) { /* record path exists */
p = strchr(file_limit, '"');
if (!p) {
zc_error("record_path not start with \", [%s]", file_limit);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment