]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MINOR: vars: fix indentation in var_clear_buffer()
authorAurelien DARRAGON <adarragon@haproxy.com>
Thu, 18 Jan 2024 09:59:23 +0000 (10:59 +0100)
committerAurelien DARRAGON <adarragon@haproxy.com>
Thu, 18 Jan 2024 15:31:55 +0000 (16:31 +0100)
Fix indentation in var_clear_buffer() since it is exclusively using
spaces.

Could be backported if a fix depends on it.

src/vars.c

index 0e761909fb1ba8e5e97a79bd66506013b00c51a0..0962a1c9c519ca6dea9861a9c298d7f61ad88d29 100644 (file)
@@ -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