X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=lttng-filter-interpreter.c;h=c7e9f1f1f1777577cc16baf7bda9f9d5ab5f92fa;hb=a6370148ab4a6f210c29372febcffd87b440cc50;hp=713a9d7d406f9f9c08c9fcb6e61f3acd43a92d8a;hpb=5b4ad89f381e2c864395af2b762d75151c03fdb3;p=lttng-modules.git diff --git a/lttng-filter-interpreter.c b/lttng-filter-interpreter.c index 713a9d7d..c7e9f1f1 100644 --- a/lttng-filter-interpreter.c +++ b/lttng-filter-interpreter.c @@ -22,7 +22,7 @@ #include -#include "lttng-filter.h" +#include /* * get_char should be called with page fault handler disabled if it is expected @@ -119,21 +119,16 @@ int stack_strcmp(struct estack *stack, int top, const char *cmp_type) } } if (unlikely(char_ax == '\0')) { - if (char_bx == '\0') { - diff = 0; - break; - } else { - if (estack_bx(stack, top)->u.s.literal) { - ret = parse_char(estack_bx(stack, top), - &char_bx, &offset_bx); - if (ret == -1) { - diff = 0; - break; - } + if (estack_bx(stack, top)->u.s.literal) { + ret = parse_char(estack_bx(stack, top), + &char_bx, &offset_bx); + if (ret == -1) { + diff = 0; + break; } - diff = 1; - break; } + diff = 1; + break; } if (estack_bx(stack, top)->u.s.literal) { ret = parse_char(estack_bx(stack, top),