From a57647e1556a67037176ff267a4ba4a2a4dfb59d Mon Sep 17 00:00:00 2001 From: Akira TAGOH Date: Mon, 12 Nov 2018 05:01:50 +0000 Subject: [PATCH] covscan fix: get rid of unnecessary condition check --- src/fcxml.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/fcxml.c b/src/fcxml.c index 81f0cbc..fb60df2 100644 --- a/src/fcxml.c +++ b/src/fcxml.c @@ -3259,8 +3259,8 @@ FcConfigParseAndLoadDir (FcConfig *config, /* * Add all files of the form [0-9]*.conf */ + d_len = strlen (e->d_name); if ('0' <= e->d_name[0] && e->d_name[0] <= '9' && - (d_len = strlen (e->d_name)) < FC_MAX_FILE_LEN && d_len > TAIL_LEN && strcmp (e->d_name + d_len - TAIL_LEN, TAIL) == 0) {