mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-08-07 07:37:02 +02:00
MINOR: vars: fix indentation in var_clear_buffer()
Fix indentation in var_clear_buffer() since it is exclusively using spaces. Could be backported if a fix depends on it.
This commit is contained in:
parent
0eaf42a2a4
commit
52f0b6edbe
20
src/vars.c
20
src/vars.c
@ -328,16 +328,16 @@ static int smp_fetch_var(const struct arg *args, struct sample *smp, const char
|
||||
*/
|
||||
static inline void var_clear_buffer(struct sample *smp, struct vars *vars, struct var *var, int var_type)
|
||||
{
|
||||
if (var_type == SMP_T_STR || var_type == SMP_T_BIN) {
|
||||
ha_free(&var->data.u.str.area);
|
||||
var_accounting_diff(vars, smp->sess, smp->strm,
|
||||
-var->data.u.str.data);
|
||||
}
|
||||
else if (var_type == SMP_T_METH && var->data.u.meth.meth == HTTP_METH_OTHER) {
|
||||
ha_free(&var->data.u.meth.str.area);
|
||||
var_accounting_diff(vars, smp->sess, smp->strm,
|
||||
-var->data.u.meth.str.data);
|
||||
}
|
||||
if (var_type == SMP_T_STR || var_type == SMP_T_BIN) {
|
||||
ha_free(&var->data.u.str.area);
|
||||
var_accounting_diff(vars, smp->sess, smp->strm,
|
||||
-var->data.u.str.data);
|
||||
}
|
||||
else if (var_type == SMP_T_METH && var->data.u.meth.meth == HTTP_METH_OTHER) {
|
||||
ha_free(&var->data.u.meth.str.area);
|
||||
var_accounting_diff(vars, smp->sess, smp->strm,
|
||||
-var->data.u.meth.str.data);
|
||||
}
|
||||
}
|
||||
|
||||
/* This function tries to create a variable whose name hash is <name_hash> in
|
||||
|
Loading…
Reference in New Issue
Block a user