Filter: fix bytecode validation typo
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Fri, 13 Jul 2012 21:28:16 +0000 (17:28 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Fri, 13 Jul 2012 21:28:16 +0000 (17:28 -0400)
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
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.025599 seconds and 4 git commands to generate.