From: Karel Zak Date: Mon, 29 Nov 2021 12:46:17 +0000 (+0100) Subject: lsfd: fix copy & past error [coverity scan] X-Git-Tag: v2.38-rc1~132 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=acc47228f09202383e19ba844679e129531f63c1;p=thirdparty%2Futil-linux.git 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 --- 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; }