From: Aurelien DARRAGON Date: Thu, 18 Jan 2024 09:59:23 +0000 (+0100) Subject: MINOR: vars: fix indentation in var_clear_buffer() X-Git-Tag: v3.0-dev2~36 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=52f0b6edbed3d455abcffbab3e1c2e23fd4242cb;p=thirdparty%2Fhaproxy.git 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. --- diff --git a/src/vars.c b/src/vars.c index 0e761909fb..0962a1c9c5 100644 --- a/src/vars.c +++ b/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 in