Filter: fix bytecode validation typo
[lttng-ust.git] / liblttng-ust / lttng-filter.c
index 901b2fa07a1a11cad8a4c2fac2e23984081b3cce..64576e88633178bf9f48386c2d9af79526a7831f 100644 (file)
@@ -966,7 +966,7 @@ int lttng_filter_validate_bytecode(struct bytecode_runtime *bytecode)
                        struct logical_op *insn = (struct logical_op *) pc;
 
                        if (unlikely(reg[REG_R0].type == REG_TYPE_UNKNOWN
-                                       || reg[REG_R0].type == REG_TYPE_UNKNOWN
+                                       || reg[REG_R1].type == REG_TYPE_UNKNOWN
                                        || reg[REG_R0].type == REG_STRING
                                        || reg[REG_R1].type == REG_STRING)) {
                                ERR("Logical comparator can only be applied to numeric and floating point registers\n");
This page took 0.025539 seconds and 4 git commands to generate.