From acc47228f09202383e19ba844679e129531f63c1 Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Mon, 29 Nov 2021 13:46:17 +0100 Subject: [PATCH] lsfd: fix copy & past error [coverity scan] 1235 if (right->type != NODE_NUM) { 1236 snprintf(parser->errmsg, ERRMSG_LEN, 1237 _("error: unexpected right operand type %s for: %s"), >>> CID 374358: Incorrect expression (COPY_PASTE_ERROR) >>> "left" in "left->type" looks like a copy-paste error. 1238 NODE_CLASS(left)->name, 1239 op2_class->name); 1240 return false; 1241 } Signed-off-by: Karel Zak --- misc-utils/lsfd-filter.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/misc-utils/lsfd-filter.c b/misc-utils/lsfd-filter.c index da53864778..e89bb27917 100644 --- a/misc-utils/lsfd-filter.c +++ b/misc-utils/lsfd-filter.c @@ -1238,7 +1238,7 @@ static bool op2_check_type_num(struct parser* parser, struct op2_class *op2_clas if (right->type != NODE_NUM) { snprintf(parser->errmsg, ERRMSG_LEN, _("error: unexpected right operand type %s for: %s"), - NODE_CLASS(left)->name, + NODE_CLASS(right)->name, op2_class->name); return false; } -- 2.47.3