From fb72494a0993e167b4736c3c655bc38a46c31d9d Mon Sep 17 00:00:00 2001 From: Mathieu Desnoyers Date: Fri, 13 Jul 2012 17:28:16 -0400 Subject: [PATCH] Filter: fix bytecode validation typo Signed-off-by: Mathieu Desnoyers --- liblttng-ust/lttng-filter.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/liblttng-ust/lttng-filter.c b/liblttng-ust/lttng-filter.c index 901b2fa0..64576e88 100644 --- a/liblttng-ust/lttng-filter.c +++ b/liblttng-ust/lttng-filter.c @@ -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"); -- 2.34.1