MINOR: log: Remove unused case statement during the log-format string parsing
Since the commit cd0d2ed6e ("MEDIUM: log-format: make the LF parser aware of sample expressions' end"), the LF_STEXPR label in the last switch-case statement at the end of the for loop in the parse_logformat_string() function cannot be reached anymore. This patch should fix the issue #723.
This commit is contained in:
parent
67a8271cc7
commit
b4174d5a79
@ -717,10 +717,6 @@ int parse_logformat_string(const char *fmt, struct proxy *curproxy, struct list
|
||||
if (!parse_logformat_var(arg, arg_len, var, var_len, curproxy, list_format, &options, err))
|
||||
goto fail;
|
||||
break;
|
||||
case LF_STEXPR:
|
||||
if (!add_sample_to_logformat_list(var, arg, arg_len, curproxy, list_format, options, cap, err, &sp))
|
||||
goto fail;
|
||||
break;
|
||||
case LF_TEXT:
|
||||
case LF_SEPARATOR:
|
||||
if (!add_to_logformat_list(sp, str, pformat, list_format, err))
|
||||
|
Loading…
x
Reference in New Issue
Block a user